IDEMPIERE-950 - detected a NPE when zooming from Trial Report to Account Elemen window
This commit is contained in:
parent
6ea08beba8
commit
06626f6674
|
@ -1274,7 +1274,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
boolean refresh=true;
|
||||
Treeitem item = treePanel.getTree().getSelectedItem();
|
||||
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
|
||||
if (item != null)
|
||||
if (item != null && item.getValue() != null)
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
MTreeNode treeNode = ((DefaultTreeNode<MTreeNode>) item.getValue()).getData();
|
||||
|
|
Loading…
Reference in New Issue