From 5b81a29acc9909d45c2299541228992aeb19813c Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Fri, 11 Jan 2013 13:45:32 +0200 Subject: Merge of (#8519) to Vaadin 7. Table does not refresh after selecting more rows than pagination size. Change-Id: I352e15f9e124d13b0171b6bb1b8b287f52a056bc --- client/src/com/vaadin/client/ui/VScrollTable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client') 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; } -- cgit v1.2.3