Project: Eclipse_Platform_UI
Bug 223653 [Contributions] NPE on shutdown via ShowIn code
Reported: 2008-03-24 10:54:50 | Status: verified fixed

I20080323-2000 I got the following stacktrace on shutdown. I hadn't done much in this session other than try to install the releng tools. java.lang.NullPointerException at org.eclipse.ui.internal.ShowInMenu.dispose(ShowInMenu.java:351) at org.eclipse.jface.action.MenuManager.dispose(MenuManager.java:233) at org.eclipse.jface.action.MenuManager.dispose(MenuManager.java:233) at org.eclipse.jface.action.MenuManager.dispose(MenuManager.java:233) at org.eclipse.jface.window.ApplicationWindow.close(ApplicationWindow.java:308) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1602) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:698) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:674) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:790) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:788) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$15.run(Workbench.java:918) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:915) at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:844) at org.eclipse.ui.internal.Workbench$22.run(Workbench.java:1088) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1086) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1058) at org.eclipse.ui.internal.Workbench$54.handleEvent(Workbench.java:2253) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3544) at org.eclipse.swt.widgets.Display.coreEventProc(Display.java:846) at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3011) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2368) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2332) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:476) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:471) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java