Merge branch 'RED-8905-bp' into 'release/4.244.x'
RED-8905: DM: File in error state when using getPreviousSibling() See merge request redactmanager/redaction-service!363
This commit is contained in:
commit
7a9b1c65d7
@ -89,8 +89,8 @@ public class DocumentTree {
|
|||||||
if (treeId.isEmpty()) {
|
if (treeId.isEmpty()) {
|
||||||
return root != null;
|
return root != null;
|
||||||
}
|
}
|
||||||
Entry entry = root.children.get(treeId.get(0));
|
Entry entry = root;
|
||||||
for (int id : treeId.subList(1, treeId.size())) {
|
for (int id : treeId) {
|
||||||
if (id >= entry.children.size() || 0 > id) {
|
if (id >= entry.children.size() || 0 > id) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user