IDEMPIERE-5674 - Fix null pointer exception when remove favorites nodes (#1786)

This commit is contained in:
Jose Leite 2023-04-18 05:24:29 -03:00 committed by GitHub
parent 37cab23ef1
commit d0e6c050bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -212,6 +212,7 @@ public class FavouriteController
if (treeModel != null)
{
DefaultTreeNode<Object> treeNode = treeModel.find(treeModel.getRoot(), favNode.getAD_Tree_Favorite_Node_ID());
if(treeNode != null)
treeModel.removeNode(treeNode);
}