- Treat as root node when parentId is empty string in FetchJsonTreeCommandHandlermaster
@@ -56,7 +56,7 @@ public class ResourceTreeNode { | |||||
ResourceTreeNode node = fromNodeVo(vo); | ResourceTreeNode node = fromNodeVo(vo); | ||||
map.put(node.id, node); | map.put(node.id, node); | ||||
// real root | // real root | ||||
if (node.parentId == null) { | |||||
if (node.parentId == null || node.parentId.isEmpty()) { | |||||
root = node; | root = node; | ||||
} else if (map.containsKey(node.parentId)) { | } else if (map.containsKey(node.parentId)) { | ||||
map.get(node.parentId).children.add(node); | map.get(node.parentId).children.add(node); | ||||