summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-09-27 06:58:06 +0000
committerJonatan Kronqvist <jonatan.kronqvist@itmill.com>2011-09-27 06:58:06 +0000
commit7c495115e89952d770948a501e7da58d2c6d8fc0 (patch)
treeb7a5a0580002cc41573b82a29fc67d447d7b6a9d
parentb011c155b0ce1f05d9026102d755b7970515d65e (diff)
downloadvaadin-framework-7c495115e89952d770948a501e7da58d2c6d8fc0.tar.gz
vaadin-framework-7c495115e89952d770948a501e7da58d2c6d8fc0.zip
Yet another indexing issue fixed for #7620
svn changeset:21318/svn branch:6.7
-rw-r--r--src/com/vaadin/ui/Table.java3
1 files changed, 3 insertions, 0 deletions
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);