IDEMPIERE-5887 - Fixed bug causing NPE when clicking on Flat View (#2063)

This commit is contained in:
Diego Ruiz 2023-10-17 16:45:57 +02:00 committed by GitHub
parent c91f1b6fb8
commit af8f5db555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -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;
} }