IDEMPIERE-950 - detected a NPE when zooming from Trial Report to Account Elemen window

This commit is contained in:
Carlos Ruiz 2016-12-13 18:44:07 +01:00
parent 6ea08beba8
commit 06626f6674
1 changed files with 1 additions and 1 deletions

View File

@ -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();