RED-8905: DM: File in error state when using getPreviousSibling() #362

Merged
kilian.schuettler1 merged 1 commits from RED-8905 into master 2024-04-04 15:41:07 +02:00

View File

@ -92,8 +92,8 @@ public class DocumentTree {
if (treeId.isEmpty()) {
return root != null;
}
Entry entry = root.children.get(treeId.get(0));
for (int id : treeId.subList(1, treeId.size())) {
Entry entry = root;
for (int id : treeId) {
if (id >= entry.children.size() || 0 > id) {
return false;
}