don't scale if deployment is nil
@@ -231,7 +231,9 @@ func (h *ScaleHandler) handleScale(ctx context.Context, scaledObject *keda_v1alp
scaler.Close()
}
+ if deployment != nil {
h.scaleDeployment(deployment, scaledObject, isScaledObjectActive)
+ }
return
}
