IDEMPIERE-5674 - Fix null pointer exception when remove favorites nodes (#1786)
This commit is contained in:
parent
37cab23ef1
commit
d0e6c050bd
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue