diff --git a/controller/state.go b/controller/state.go index e3224e0034..29fd103187 100644 --- a/controller/state.go +++ b/controller/state.go @@ -166,7 +166,7 @@ func unmarshalManifests(manifests []string) ([]*unstructured.Unstructured, []*un if err != nil { return nil, nil, err } - if ignore.Ignore(obj) { + if obj == nil || ignore.Ignore(obj) { continue } if hookutil.IsHook(obj) {