IDEMPIERE-5887 - Fixed bug causing NPE when clicking on Flat View (#2063)
This commit is contained in:
parent
c91f1b6fb8
commit
af8f5db555
|
@ -254,12 +254,14 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue