IDEMPIERE-2969:update to use zk8-osgi library

NPE when open window "Account Element". because zk change load data behavios of tree
This commit is contained in:
hieplq 2016-03-29 09:00:30 +07:00
parent 7d6eb45e85
commit 219ee628c8
1 changed files with 7 additions and 1 deletions

View File

@ -1391,7 +1391,13 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
if (treePanel.getTree().getSelectedItem() != null) {
DefaultTreeNode<Object> treeNode = treePanel.getTree().getSelectedItem().getValue();
Treeitem treeItem = treePanel.getTree().getSelectedItem();
if (!treeItem.isLoaded()){
return;
}
DefaultTreeNode<Object> treeNode = treeItem.getValue();
MTreeNode data = (MTreeNode) treeNode.getData();
if (data.getNode_ID() == recordId) {
int[] path = model.getPath(treeNode);