aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 4951997995..773c7ac6a0 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -3179,6 +3179,13 @@ public class Grid<T> extends ResizeComposite implements
"Got null header first row or first row cell when calculating sidebar button height");
openCloseButton.setHeight(grid.escalator.getHeader()
.getDefaultRowHeight() + "px");
+ } catch (IndexOutOfBoundsException ioobe) {
+ // happens when escalator doesn't have any headers rendered yet.
+ getLogger()
+ .warning(
+ "No header cell available when calculating sidebar button height");
+ openCloseButton.setHeight(grid.escalator.getHeader()
+ .getDefaultRowHeight() + "px");
}
}