diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-01-23 13:10:38 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-01-23 13:10:38 +0000 |
commit | 7b2e97499efa079a055eb4a8d2b932f216d3666f (patch) | |
tree | b71a0dd4a23831113e27a6bce182de083dab1804 | |
parent | 272923e03232e07cca23abf51618c819807122e1 (diff) | |
download | vaadin-framework-7b2e97499efa079a055eb4a8d2b932f216d3666f.tar.gz vaadin-framework-7b2e97499efa079a055eb4a8d2b932f216d3666f.zip |
#8273 Added sanity check to prevent trying to render past the end of the cells array
svn changeset:22745/svn branch:6.8
-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 d8c59c2e91..199a6805f6 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -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]; |