fixed panic on patch delete for objects

This commit is contained in:
Natasha Sarkar
2021-02-18 10:47:13 -08:00
parent 4a35bfa84c
commit 6361c3b1b7
3 changed files with 58 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ func (fltr Filter) filter(obj *yaml.RNode) error {
// found the field -- set its value
return fltr.SetValue(obj)
}
if obj.IsTaggedNull() {
if obj.IsTaggedNull() || obj.IsNil() {
return nil
}
switch obj.YNode().Kind {