IDEMPIERE-5674 - Fix null pointer exception when remove favorites nodes (#1786)
This commit is contained in:
parent
37cab23ef1
commit
d0e6c050bd
|
@ -212,7 +212,8 @@ public class FavouriteController
|
|||
if (treeModel != null)
|
||||
{
|
||||
DefaultTreeNode<Object> treeNode = treeModel.find(treeModel.getRoot(), favNode.getAD_Tree_Favorite_Node_ID());
|
||||
treeModel.removeNode(treeNode);
|
||||
if(treeNode != null)
|
||||
treeModel.removeNode(treeNode);
|
||||
}
|
||||
|
||||
nodeMap.remove(nodeId);
|
||||
|
|
Loading…
Reference in New Issue