|
@@ -236,7 +236,11 @@ public abstract class INode implements Comparable<byte[]>, FSInodeInfo {
|
|
|
|
|
|
String getLocalParentDir() {
|
|
|
INode inode = isRoot() ? this : getParent();
|
|
|
- return (inode != null) ? inode.getFullPathName() : "";
|
|
|
+ String parentDir = "";
|
|
|
+ if (inode != null) {
|
|
|
+ parentDir = inode.getFullPathName();
|
|
|
+ }
|
|
|
+ return (parentDir != null) ? parentDir : "";
|
|
|
}
|
|
|
|
|
|
/**
|