diff options
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r-- | src/com/vaadin/ui/Table.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 234173c2f1..dcebfa2672 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -1926,11 +1926,13 @@ public class Table extends AbstractSelect implements Action.Container, } // Add range items - for (String range : ranges) { - String[] limits = range.split("-"); - int start = Integer.valueOf(limits[0]); - int end = Integer.valueOf(limits[1]); - s.addAll(getItemIdsInRange(start, end)); + if (ranges != null) { + for (String range : ranges) { + String[] limits = range.split("-"); + int start = Integer.valueOf(limits[0]); + int end = Integer.valueOf(limits[1]); + s.addAll(getItemIdsInRange(start, end)); + } } setValue(s, true); |