Use blockBuilders.length in PageBuilder#reset() loop
@@ -94,7 +94,7 @@ public class PageBuilder
declaredPositions = 0;
- for (int i = 0; i < types.size(); i++) {
+ for (int i = 0; i < blockBuilders.length; i++) {
blockBuilders[i] = blockBuilders[i].newBlockBuilderLike(pageBuilderStatus.createBlockBuilderStatus());
}
}
