Possible race error was fixed

GitOrigin-RevId: bc9bfa2a25448412c8d28f8cae1e4281a149cccc
This commit is contained in:
Aleksey Tomin
2021-09-07 12:38:17 +04:00
committed by intellij-monorepo-bot
parent 7bf5a6152d
commit c017e6f03a

View File

@@ -228,8 +228,6 @@ public class ArrayRenderer extends NodeRendererImpl{
}
private void finish(ChildrenBuilder builder, int arrayLength, int added, boolean hiddenNulls, int end, int idx) {
builder.addChildren(Collections.emptyList(), true);
if (added == 0) {
if (START_INDEX == 0 && arrayLength - 1 <= END_INDEX) {
builder
@@ -251,6 +249,7 @@ public class ArrayRenderer extends NodeRendererImpl{
builder.tooManyChildren(end - idx);
}
}
builder.addChildren(Collections.emptyList(), true);
}
private static final class ArrayValuesCache {