diff options
author | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2011-09-27 06:58:06 +0000 |
---|---|---|
committer | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2011-09-27 06:58:06 +0000 |
commit | 7c495115e89952d770948a501e7da58d2c6d8fc0 (patch) | |
tree | b7a5a0580002cc41573b82a29fc67d447d7b6a9d | |
parent | b011c155b0ce1f05d9026102d755b7970515d65e (diff) | |
download | vaadin-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.java | 3 |
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); |