提交 5d4c0c76 编写于 作者: J Jesse Glick

Make toString safe even when parent == null (as during deserialization).

上级 bc4a3892
......@@ -661,8 +661,8 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
return getName();
}
public String toString() {
return super.toString()+'['+getFullName()+']';
@Override public String toString() {
return super.toString() + '[' + (parent != null ? getFullName() : "?/" + name) + ']';
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册