Project: Eclipse_Platform_UI
Bug 73359 [Workbench] NPE WorkbenchWindow.firePerspectiveChanged
Reported: 2004-09-07 06:42:48 | Status: verified fixed

Got NPE during exit. !SESSION Sep 07, 2004 12:36:38.805 --------------------------------------------- eclipse.buildId=I200409011200 java.version=1.4.2_05 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH Command-line arguments: -update -keyring c:\eclipse\.keyring -application org.eclipse.ui.ide.workbench -showlocation !ENTRY org.eclipse.ui 4 4 Sep 07, 2004 12:36:38.805 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 Sep 07, 2004 12:36:38.815 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveChanged(WorkbenchWindow.java:894) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:948) at org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(WorkbenchPage.java:880) at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1253) at org.eclipse.ui.internal.WorkbenchWindow.closePage(WorkbenchWindow.java:644) at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:848) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchPage.close(WorkbenchPage.java:846) at org.eclipse.ui.internal.WorkbenchPage.closeAllPerspectives(WorkbenchPage.java:1123) at org.eclipse.ui.internal.PerspectiveSwitcher$10.widgetSelected(PerspectiveSwitcher.java:840) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2783) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2442) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) 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:185) at org.eclipse.core.launcher.Main.run(Main.java:684) at org.eclipse.core.launcher.Main.main(Main.java:668)

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