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:
parent
7d6eb45e85
commit
219ee628c8
|
@ -1391,7 +1391,13 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
|
|
||||||
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
|
SimpleTreeModel model = (SimpleTreeModel)(TreeModel<?>) treePanel.getTree().getModel();
|
||||||
if (treePanel.getTree().getSelectedItem() != null) {
|
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();
|
MTreeNode data = (MTreeNode) treeNode.getData();
|
||||||
if (data.getNode_ID() == recordId) {
|
if (data.getNode_ID() == recordId) {
|
||||||
int[] path = model.getPath(treeNode);
|
int[] path = model.getPath(treeNode);
|
||||||
|
|
Loading…
Reference in New Issue