Project: Eclipse_Platform_UI
Bug 58042 NPE in BasicStackPresentation$10.handleEvent
Reported: 2004-04-09 15:25:42 | Status: resolved fixed

build I20040407 While playing around with the browser example under debug, I saw the following in the console. Not sure exactly what gesture caused it, but I wasn't doing anything fancy. Just opening and closing views. Looks like the currentListener is not getting properly nulled out. !SESSION Apr 09, 2004 15:09:29.925 --------------------------------------------- java.version=1.4.2_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -application org.eclipse.ui.examples.rcp.browser.app -application org.eclipse.ui.examples.rcp.browser.app -url d:\web\eclipsecon home.htm !ENTRY org.eclipse.ui 4 4 Apr 09, 2004 15:09:29.935 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 Apr 09, 2004 15:09:29.935 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.presentations.BasicStackPresentation$10.handleEvent(BasicStackPresentation.java:254) at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove(PresentationUtil.java:79) at org.eclipse.ui.presentations.PresentationUtil.access$1(PresentationUtil.java:74) at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent(PresentationUtil.java:50) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:769) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2584) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2262) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1436) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1407) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:244) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:140) at org.eclipse.ui.examples.rcp.browser.BrowserApp.run(BrowserApp.java:54) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:279) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:241) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:267) at org.eclipse.core.launcher.Main.run(Main.java:692) at org.eclipse.core.launcher.Main.main(Main.java:676)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/presentations/PresentationUtil.java