IDEMPIERE-284 zk: Moving tree item using drag and drop sometime throw NPE
This commit is contained in:
parent
5997f4c96c
commit
83a4fbaf48
|
@ -147,7 +147,7 @@ public class ADTreeOnDropListener implements EventListener {
|
||||||
treeModel.addNode(newParent, movingNode, index);
|
treeModel.addNode(newParent, movingNode, index);
|
||||||
|
|
||||||
int path[] = treeModel.getPath(movingNode);
|
int path[] = treeModel.getPath(movingNode);
|
||||||
if (TreeUtils.isOnInitRenderPosted(tree))
|
if (TreeUtils.isOnInitRenderPosted(tree) || tree.getTreechildren() == null)
|
||||||
{
|
{
|
||||||
tree.onInitRender();
|
tree.onInitRender();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue