Thank you for reporting this bug. We will make it our priority to review this report.
[FIXED] MenuItem delete on click of the MenuiTem icon throwing a null pointer ex
I delete a MenuItem from a Menu, onclick of the MenuItem icon. The MenuItem is getting deleted, but throwing a null pointer exception in the deactivate() method of the Item class.
Here is the sample code snippet:
final CustomMenuItem mySavedViewOneMenuItem = new CustomMenuItem( "menu1" );
final CustomMenuItem menu2 = new CustomMenuItem( "menu2" );
Menu menu = new Menu();
mySavedViewOneMenuItem.setIcon( closeIcon );
menu.insert( mySavedViewOneMenuItem, 0 );
menu.insert( menu2, 1 );
item1.setMenu( menu );
mySavedViewOneMenuItem.addIconClickListener( new Listener<BaseEvent>()
public void handleEvent( BaseEvent be )
Menu parentMenu = mySavedViewOneMenuItem.getParentMenu();
Thanks in advance.
What do you mean by fixed in SVN.
where can I get the fixed version.
It is fixed in SVN. The fix is not released.
You can get SVN access with a support subscription: http://www.extjs.com/store/gxt/#support-table
MenuItem delete on click of the MenuiTem icon throwing a null pointer exception
ah I see it is not in the release yet... BTW this bug seems to be in extjs 3 as well
here is the fix if you cant access the svn:
beforeDestroy : function ifthis.rendered this.keyNav.disable; // throws NULL Exception this.keyNav = null; Ext.destroy this.leftClickRpt, this.rightClickRpt, this.monthPicker, this.eventEl, this.mbtn, this.todayBtn ;
beforeDestroy : function ifthis.rendered ifthis.keyNav = null this.keyNav.disable; this.keyNav = null; Ext.destroy this.leftClickRpt, this.rightClickRpt, this.monthPicker, this.eventEl, this.mbtn, this.todayBtn ;
It was released already (Gxt 2.1.0).
But I guess you maybe talking about ext-js...
In this case, you might want to post it in their forum.