mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 17:28:44 +00:00
Test for nil to prevent nil pointer dereference (#3237)
This commit is contained in:
parent
bbb925cb63
commit
0378819c54
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue