Skip to content

Commit

Permalink
Merge pull request #173 from JosieLi-Google/master
Browse files Browse the repository at this point in the history
Check if raw is a null pointer for findObject
  • Loading branch information
evanphx authored Sep 11, 2023
2 parents eed7579 + dd9b733 commit be43a06
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 be43a06

Please sign in to comment.