Merge "fuse: fix crash populating non-permanode camliPath"

This commit is contained in:
Brad Fitzpatrick 2014-05-08 22:55:44 +00:00 committed by Gerrit Code Review
commit 5c41aa54b1
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ func (n *mutDir) populate() error {
log.Printf("child not described: %v", childRef)
continue
}
if child.Permanode == nil {
log.Printf("invalid child, not a permanode: %v", childRef)
continue
}
if target := child.Permanode.Attr.Get("camliSymlinkTarget"); target != "" {
// This is a symlink.
n.maybeAddChild(name, child.Permanode, &mutFile{