do not add "loading.." node to a leaf

This commit is contained in:
Gregory.Shrago
2017-10-04 11:47:39 +03:00
parent f8729fa9be
commit da33da807a
@@ -324,7 +324,7 @@ public final class AsyncTreeModel extends AbstractTreeModel implements Disposabl
private List<Node> getEntryChildren(Object object) {
Node node = getEntry(object);
if (node == null) return emptyList();
promiseChildren(node);
if (node.isLoadingRequired()) promiseChildren(node);
return node.getChildren();
}