dpeters
16 Feb 2012, 10:49 AM
Found a null pointer exception in the ContentPanel class (Ext GWT 3 Beta 2). When you hide the collapse tool of an AccordionLayoutContainer (setHideCollapseTool(true)), the active item widget does not expand correctly, and throws a null pointer exception. You can see the error in the ContentPanel class, in the protected void afterExpand() method:
// Re-enable the toggle tool after an animated collapse
if (animCollapse && collapseBtn != null) {
collapseBtn.enable();
}
collapseBtn.changeStyle(appearance.collapseIcon());
fireEvent(new ExpandEvent());
The call to collapseBtn.changeStyle line is throwing a null pointer exception, since collapseBtn is null.
// Re-enable the toggle tool after an animated collapse
if (animCollapse && collapseBtn != null) {
collapseBtn.enable();
}
collapseBtn.changeStyle(appearance.collapseIcon());
fireEvent(new ExpandEvent());
The call to collapseBtn.changeStyle line is throwing a null pointer exception, since collapseBtn is null.