summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnna Koskinen <anna@vaadin.com>2013-01-11 13:45:32 +0200
committerAnna Koskinen <anna@vaadin.com>2013-01-11 13:45:32 +0200
commit5b81a29acc9909d45c2299541228992aeb19813c (patch)
treeea04c992ddaf45479e959c2135868c894c2cc857 /client
parent96845bea4d6d1f01dc0d22d2a3f19058a883eb4a (diff)
downloadvaadin-framework-5b81a29acc9909d45c2299541228992aeb19813c.tar.gz
vaadin-framework-5b81a29acc9909d45c2299541228992aeb19813c.zip
Merge of (#8519) to Vaadin 7.
Table does not refresh after selecting more rows than pagination size. Change-Id: I352e15f9e124d13b0171b6bb1b8b287f52a056bc
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VScrollTable.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VScrollTable.java b/client/src/com/vaadin/client/ui/VScrollTable.java
index a8cee55375..f14c86aa36 100644
--- a/client/src/com/vaadin/client/ui/VScrollTable.java
+++ b/client/src/com/vaadin/client/ui/VScrollTable.java
@@ -325,8 +325,10 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
// create range of second part unless its length is < 1
VScrollTableRow startOfRange = scrollBody
.getRowByRowIndex(startOfSecondRange);
- ranges.add(new SelectionRange(startOfRange, getEndIndex()
- - startOfSecondRange + 1));
+ if (startOfRange != null) {
+ ranges.add(new SelectionRange(startOfRange, getEndIndex()
+ - startOfSecondRange + 1));
+ }
}
return ranges;
}