diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java index fe6620dc7e..325f9ae6cb 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java @@ -254,12 +254,14 @@ public class MenuTreeFilterPanel extends Popup implements EventListener, else { Treeitem parent = treeItem.getParentItem(); - Treeitem sibling = (Treeitem) treeItem.getAttribute(ORIGINAL_SIBLING); - if (sibling != null) - { - reattachSibling(parent.getTreechildren(), sibling); + if (parent != null) { + Treeitem sibling = (Treeitem) treeItem.getAttribute(ORIGINAL_SIBLING); + if (sibling != null) + { + reattachSibling(parent.getTreechildren(), sibling); + } + parent.getTreechildren().insertBefore(treeItem, sibling); } - parent.getTreechildren().insertBefore(treeItem, sibling); } } }