PDA

View Full Version : [FIXED] GXT 1 1 alpha4 Bug - Start Menu Tools



jfisher
15 Sep 2008, 3:45 PM
Guys - I found a bug in the GXT 1 1 alpha 4 start menu / Tools.

I added a tool to the desktop start menu and receive a Uncaught exception escaped log message, and the start menu does not hide. This bug also exists in the Desktop demo. Is there a workaround available? Or next version (alpha 5 or higher) that I could test with? The details for this error is below. When looking at the code for handleCLick it seems that the parentMenu is never set for Tools.

[ERROR] Uncaught exception escaped
java.lang.NullPointerException: null
at com.extjs.gxt.ui.client.widget.menu.Item.handleClick(Item.java:135)
at com.extjs.gxt.ui.client.widget.menu.Item.onClick(Item.java:143)
at com.extjs.gxt.ui.client.widget.menu.Menu.onClick(Menu.java:537)
at com.extjs.gxt.ui.client.widget.menu.Menu.onComponentEvent(Menu.java:267)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:652)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1287)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

darrellmeyer
15 Sep 2008, 9:04 PM
Fixed in SVN.