Need to catch IndexOutOfBoundsException thrown by Escalator.
Change-Id: I7593d6c4eb3f948d494688800dcf42c2ae963b07
"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");
}
}