Commit 0988416e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix nil reference.

parent c969c8a4
...@@ -723,7 +723,7 @@ func (me *UnionFs) recursivePromote(path string, pathResult branchResult) (names ...@@ -723,7 +723,7 @@ func (me *UnionFs) recursivePromote(path string, pathResult branchResult) (names
names = append(names, path) names = append(names, path)
} }
if code.Ok() && pathResult.attr.IsDirectory() { if code.Ok() && pathResult.attr != nil && pathResult.attr.IsDirectory() {
var stream chan fuse.DirEntry var stream chan fuse.DirEntry
stream, code = me.OpenDir(path) stream, code = me.OpenDir(path)
for e := range stream { for e := range stream {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment