is currently readonly. We are migrating to, please continue working there on Monday 14/12. See:

Commit c59f8673 authored by Sergey Shepelevich's avatar Sergey Shepelevich

REPO-1857 Fix Node#getDisplayName for root node

parent 8564cbd0
......@@ -282,8 +282,11 @@ public class NodeDecorator extends org.hippoecm.repository.decorating.NodeDecora
public String getDisplayName() throws RepositoryException {
Node node = this;
if (!isNodeType(HippoNodeType.NT_NAMED)) {
Node parent = node.getParent();
if (!node.isNodeType(HippoNodeType.NT_NAMED)) {
if (node.equals(node.getSession().getRootNode())) {
return getName();
final Node parent = node.getParent();
if (parent.isNodeType(HippoNodeType.NT_HANDLE) && parent.isNodeType(HippoNodeType.NT_NAMED)) {
node = parent;
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