IDEMPIERE-3198 NPE on searching item on Menu in System / integrate patch from Henrique Lavezzo

This commit is contained in:
Carlos Ruiz 2016-09-28 10:51:20 +02:00
parent e04e6d137c
commit f7a129e7c8
1 changed files with 2 additions and 1 deletions

View File

@ -1078,7 +1078,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
}
else if (treePanel != null && event.getTarget() == treePanel.getTree()) {
Treeitem item = treePanel.getTree().getSelectedItem();
navigateTo((DefaultTreeNode<MTreeNode>)item.getValue());
if (item.getValue() != null)
navigateTo((DefaultTreeNode<MTreeNode>)item.getValue());
}
else if (ON_DEFER_SET_SELECTED_NODE.equals(event.getName())) {
removeAttribute(ON_DEFER_SET_SELECTED_NODE_ATTR);