Browse Source

#8273 Added sanity check to prevent trying to render past the end of the cells array

svn changeset:22745/svn branch:6.8
tags/7.0.0.alpha2
Johannes Dahlström 12 years ago
parent
commit
7b2e97499e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/com/vaadin/ui/Table.java

+ 3
- 0
src/com/vaadin/ui/Table.java View 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];

Loading…
Cancel
Save