summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);