add logging to investigate EA-1619327

This commit is contained in:
Sergey Malenkov
2017-10-25 17:09:24 +03:00
parent 0402d94bcf
commit 0912e4bec9
@@ -3636,7 +3636,14 @@ public class AbstractTreeUi {
if (descriptor.getChildrenSortingStamp() >= getComparatorStamp() && !forceSort) return;
if (!children.isEmpty()) {
getBuilder().sortChildren(myNodeComparator, node, (ArrayList<TreeNode>)children);
try {
getBuilder().sortChildren(myNodeComparator, node, (ArrayList<TreeNode>)children);
}
catch (IllegalArgumentException exception) {
StringBuilder sb = new StringBuilder("cannot sort children");
children.forEach(child -> sb.append('\n').append(child));
throw new IllegalArgumentException(sb.toString(), exception);
}
}
if (updateStamp) {