From: Johannes Dahlström Date: Mon, 23 Jan 2012 13:10:38 +0000 (+0000) Subject: #8273 Added sanity check to prevent trying to render past the end of the cells array X-Git-Tag: 7.0.0.alpha2~532^2^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7b2e97499efa079a055eb4a8d2b932f216d3666f;p=vaadin-framework.git #8273 Added sanity check to prevent trying to render past the end of the cells array svn changeset:22745/svn branch:6.8 --- diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index d8c59c2e91..199a6805f6 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -3047,6 +3047,9 @@ public class Table extends AbstractSelect implements Action.Container, if (start > cells[CELL_ITEMID].length || start < 0) { start = 0; } + if (end > cells[CELL_ITEMID].length) { + end = cells[CELL_ITEMID].length; + } for (int indexInRowbuffer = start; indexInRowbuffer < end; indexInRowbuffer++) { final Object itemId = cells[CELL_ITEMID][indexInRowbuffer];