From 7c495115e89952d770948a501e7da58d2c6d8fc0 Mon Sep 17 00:00:00 2001 From: Jonatan Kronqvist Date: Tue, 27 Sep 2011 06:58:06 +0000 Subject: Yet another indexing issue fixed for #7620 svn changeset:21318/svn branch:6.7 --- src/com/vaadin/ui/Table.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/com/vaadin/ui/Table.java') diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 9ca5a8abe0..cc0dd50ea8 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -1489,6 +1489,9 @@ public class Table extends AbstractSelect implements Action.Container, int rowsToAdd = Math.min(rows, totalCachedRows - firstAppendedRow); rowsToAdd = Math.min(rowsToAdd, totalRows - (firstAppendedRow + pageBufferFirstIndex)); + if (rowsToAdd == 0) { + return; + } Object[][] cells = getVisibleCellsNoCache(firstAppendedRow, rowsToAdd, false); -- cgit v1.2.3