diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/Grid.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Grid.java b/client/src/com/vaadin/client/ui/grid/Grid.java index d1858a8f3f..d5582e0202 100644 --- a/client/src/com/vaadin/client/ui/grid/Grid.java +++ b/client/src/com/vaadin/client/ui/grid/Grid.java @@ -2027,7 +2027,7 @@ public class Grid<T> extends Composite implements } else if (type.equalsIgnoreCase("cell")) { // If wanted row is not visible, we need to scroll there. Range visibleRowRange = escalator.getVisibleRowRange(); - if (!visibleRowRange.contains(indices[0])) { + if (indices.length > 0 && !visibleRowRange.contains(indices[0])) { try { scrollToRow(indices[0]); } catch (IllegalArgumentException e) { |