Duplicate :
|
I am right clicking inside a component and a popup menu is shown. clicking on one of the sub-menus and the respective menuitems appear. When I press 'ESC' the sub menu disappear. When I press 'ESC' again, I expect the popup menu to disappear but I am getting a NPE given below on the PIT build: java.lang.NullPointerException at sun.awt.X11.XBaseMenuWindow.doHandleJavaKeyEvent(XBaseMenuWindow.java:1103) at sun.awt.X11.XPopupMenuPeer.handleEvent(XPopupMenuPeer.java:168) at sun.awt.X11.XBaseMenuWindow$3.run(XBaseMenuWindow.java:883) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:590) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:171) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158) at java.awt.EventDispatchThread.run(EventDispatchThread.java:119) This is noticed only on the following PIT build and not reproducible on Mustang-b35. Hence this is a PIT failure. Reproducible only on XToolkit with SolarisSparc9-CDE. Here is the PIT build: java version "1.6.0-awt.pit-int-awt-blade" Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_06_May_2005_08_56-b00) Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode) I have attached a sample test. Run it on XToolkit. Right click inside the choice component. You would see a popup menu. Click on one of the sub-menus. Press 'ESC' twice. If you get the above exception on the console, the bug is reproduced. ###@###.### 2005-05-09 08:38:16 GMT