Skip to content

Commit

Permalink
added nil check Signed-off-by: Yash Sethiya <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
sethiyash committed Jan 20, 2023
1 parent fb0ebd6 commit 80b4696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kapp/resources/mod_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (p Path) ContainsNonMapKeys() bool {

func (p Path) ContainsNonMapKeysAndRegex() bool {
for _, part := range p {
if part.MapKey == nil && part.Regex.Regex == nil {
if part.MapKey == nil && (part.Regex == nil || part.Regex.Regex == nil) {
return true
}
}
Expand Down

0 comments on commit 80b4696

Please sign in to comment.