Skip to content

Commit 155f885

Browse files
add @alexandernorth comment
1 parent b3a5c39 commit 155f885

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/tree/types/update.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ func (u *Update) ValueAsBytes() ([]byte, error) {
9090
}
9191

9292
func (u *Update) Path() *sdcpb.Path {
93+
if u.parent == nil {
94+
return nil
95+
}
9396
return u.parent.SdcpbPath()
9497
}
9598

0 commit comments

Comments
 (0)