Project: Eclipse_Platform_UI
Bug 55931 [Workbench] NullPointerException in WorkbenchPage.setPerspective
Reported: 2004-03-24 11:51:22 | Status: verified fixed

Here are the steps (USING A NEW BUILD FOR THE FIRST TIME): 0) ./eclipse 1) Say "yes" to create default workspace dialog 2) Say "go to workbench" to welcome screen 3) Use popup menu to say "Close All" to default resource perspective in tool bar 4) NullPointerException NOTES: Eclipse catches it and keeps running. Here is the stack trace: !SESSION Mar 24, 2004 11:34:06.798 --------------------------------------------- java.version=1.4.1_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -vmargs -cp /bluebird/teamswt/wadman/eclipse/./startup.jar org.eclipse.core.launcher.Main !ENTRY org.eclipse.ui 4 4 Mar 24, 2004 11:34:06.799 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 Mar 24, 2004 11:34:06.805 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2728) at org.eclipse.ui.internal.WorkbenchPage.closeAllPerspectives(WorkbenchPage.java:1035) at org.eclipse.ui.internal.WorkbenchWindow$8.widgetSelected(WorkbenchWindow.java:1803) 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:939) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1954) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1727) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1541) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1515) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:288) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:116) 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:315) at org.eclipse.core.launcher.Main.run(Main.java:740) at org.eclipse.core.launcher.Main.main(Main.java:724)

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