Skip to content

Commit 8edcd27

Browse files
authored
Fix NPE (#62)
1 parent 927057e commit 8edcd27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hoptimator-operator/src/main/java/com/linkedin/hoptimator/operator/subscription/SubscriptionReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ private static boolean isReady(DynamicKubernetesObject obj) {
316316
// Whether status has diverged from spec (i.e. we need to re-plan the pipeline)
317317
private static boolean diverged(V1alpha1SubscriptionSpec spec, V1alpha1SubscriptionStatus status) {
318318
return status.getSql() == null || !status.getSql().equals(spec.getSql())
319-
|| !status.getHints().equals(spec.getHints());
319+
|| status.getHints() == null || !status.getHints().equals(spec.getHints());
320320
}
321321

322322
// Fetch attributes from downstream controllers

0 commit comments

Comments
 (0)