Skip to content

Commit

Permalink
Check if raw is a null pointer for findObject
Browse files Browse the repository at this point in the history
  • Loading branch information
JosieLi-Google committed Mar 29, 2023
1 parent b2e4d76 commit dd9b733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func findObject(pd *container, path string) (container, string) {

next, ok := doc.get(decodePatchKey(part))

if next == nil || ok != nil {
if next == nil || ok != nil || next.raw == nil {
return nil, ""
}

Expand Down

0 comments on commit dd9b733

Please sign in to comment.