]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8273 Added sanity check to prevent trying to render past the end of the cells array
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 23 Jan 2012 13:10:38 +0000 (13:10 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 23 Jan 2012 13:10:38 +0000 (13:10 +0000)
svn changeset:22745/svn branch:6.8

src/com/vaadin/ui/Table.java

index d8c59c2e91b6fd73321a49f3771f657e2ffe9c45..199a6805f6ac916d5c64e1ec612d266de5a738f1 100644 (file)
@@ -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];