Skip to content

Commit be43a06

Browse files
authored
Merge pull request #173 from JosieLi-Google/master
Check if raw is a null pointer for findObject
2 parents eed7579 + dd9b733 commit be43a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func findObject(pd *container, path string) (container, string) {
359359

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

362-
if next == nil || ok != nil {
362+
if next == nil || ok != nil || next.raw == nil {
363363
return nil, ""
364364
}
365365

0 commit comments

Comments
 (0)