IDEMPIERE-284 zk: Moving tree item using drag and drop sometime throw NPE

This commit is contained in:
Heng Sin Low 2012-06-01 01:46:26 +08:00
parent 5997f4c96c
commit 83a4fbaf48
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public class ADTreeOnDropListener implements EventListener {
treeModel.addNode(newParent, movingNode, index);
int path[] = treeModel.getPath(movingNode);
if (TreeUtils.isOnInitRenderPosted(tree))
if (TreeUtils.isOnInitRenderPosted(tree) || tree.getTreechildren() == null)
{
tree.onInitRender();
}