for (Entry<Long, Long> parentIdEntry : parentIdToChildIds.entries()) {
parentNode = customerIdToCustomerNode.get(parentIdEntry.getKey());
childNode = customerIdToCustomerNode.get(parentIdEntry.getValue());
childNode.parentNode = parentNode;
parentNode.childAccounts.add(childNode);
}
parentNode.childAccounts.add(childNode);
because we get a null parentNode, we are using a key present in the links list but not in the entries list. Why is that?
Thanks a lot for your support
Kind regardsCarmine