IDEMPIERE-5887 - Fixed bug causing NPE when clicking on Flat View (#2063)
This commit is contained in:
parent
c91f1b6fb8
commit
af8f5db555
|
@ -254,6 +254,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Treeitem parent = treeItem.getParentItem();
|
Treeitem parent = treeItem.getParentItem();
|
||||||
|
if (parent != null) {
|
||||||
Treeitem sibling = (Treeitem) treeItem.getAttribute(ORIGINAL_SIBLING);
|
Treeitem sibling = (Treeitem) treeItem.getAttribute(ORIGINAL_SIBLING);
|
||||||
if (sibling != null)
|
if (sibling != null)
|
||||||
{
|
{
|
||||||
|
@ -263,6 +264,7 @@ public class MenuTreeFilterPanel extends Popup implements EventListener<Event>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
lastVisitedItem[0] = treeItem;
|
lastVisitedItem[0] = treeItem;
|
||||||
lastVisitedParent[0] = currentParent;
|
lastVisitedParent[0] = currentParent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue