View Full Version : [FIXED] Accordion Layout issue when hiding collapse tool

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) {


fireEvent(new ExpandEvent());

The call to collapseBtn.changeStyle line is throwing a null pointer exception, since collapseBtn is null.

17 Feb 2012, 1:19 PM
A quick test of AccordionLayoutContainer in Beta 3 seems to show that setHideCollapseTool no longer results in an exception, but the hiding of the collapse tool itself isn't working correctly. I'll file a ticket for the team and will update this thread once setHideCollapseTool is working as expected.

26 Feb 2012, 1:51 PM
Fixed in SVN rev 2233.

2 Mar 2012, 12:48 PM
This fix has been released in beta 4 (http://www.sencha.com/forum/showthread.php?184556-Ext-GWT-3.0-Beta-4-Now-Available). Thanks again for your analysis of the bug. We've tested the fix and it seems to work correctly.

If you continue to notice this problem with this release, please post a reply and I'll continue following up with the team.