Project: Eclipse_Platform_UI
Bug 88867 [DetachedViews] NPE with detached views
Reported: 2005-03-23 10:25:35 | Status: verified fixed

- I get the following NPE on shutdown. - I have 2 detached views. (hidden) - On subsequent startups my views appear open but are greyed out and contain nothing. eclipse.buildId=I20050315-1100 java.fullversion=J2RE 1.4.2 IBM J9 2.2 Windows XP x86-32 j9n142-20040915 (JIT enabled) J9VM - 20040914_1123_lHdSMR JIT - r7_level20040912_1800 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA Framework arguments: -showlocation Command-line arguments: -os win32 -ws win32 -arch x86 -debug -data \eclipse\target\head\plugins\ -showlocation -consoleLog -console Error 2005-03-23 06:06:10.773 Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". java.lang.NullPointerException at org.eclipse.ui.internal.DetachedWindow.close(DetachedWindow.java:121) at org.eclipse.ui.internal.PerspectiveHelper.deactivate(PerspectiveHelper.java:580) at org.eclipse.ui.internal.Perspective.onDeactivate(Perspective.java:787) at org.eclipse.ui.internal.WorkbenchPage.onDeactivate(WorkbenchPage.java:2109) at org.eclipse.ui.internal.WorkbenchWindow$4.run(WorkbenchWindow.java:2153) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2148) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:645) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1236) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:540) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:521) at org.eclipse.ui.internal.WorkbenchWindow$1.run(WorkbenchWindow.java:622) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:620) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:108) at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:527) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015) at org.eclipse.core.runtime.Platform.run(Platform.java:757) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:524) at org.eclipse.ui.internal.Workbench.access$6(Workbench.java:460) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:644) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.close(Workbench.java:642) at org.eclipse.ui.internal.Workbench.close(Workbench.java:617) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:537) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:521) at org.eclipse.ui.internal.WorkbenchWindow$1.run(WorkbenchWindow.java:622) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:620) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:719) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:666) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:158) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:866) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:851) at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:256) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1568) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3026) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1493) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1619) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:403) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3109) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1493) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1619) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:403) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3109) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1493) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1624) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2525) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1520) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1484) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:305) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:338) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268) at org.eclipse.core.launcher.Main.basicRun(Main.java:260) at org.eclipse.core.launcher.Main.run(Main.java:887) at org.eclipse.core.launcher.Main.main(Main.java:871)

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