diff --git a/reconciler/reconcile_common.go b/reconciler/reconcile_common.go index 8af08f61a..cc0e2d712 100644 --- a/reconciler/reconcile_common.go +++ b/reconciler/reconcile_common.go @@ -48,8 +48,9 @@ func PostProcessReconcile(ctx context.Context, resource duckv1.KRShaped) { // generation regardless of success or failure. newStatus.ObservedGeneration = resource.GetGeneration() - rc := mgr.GetTopLevelCondition() - if rc.Reason == failedGenerationBump { + if rc := mgr.GetTopLevelCondition(); rc == nil { + logger.Warn("A reconciliation included no top-level condition") + } else if rc.Reason == failedGenerationBump { logger.Warn("A reconciler observed a new generation without updating the resource status") } }