Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 74349 - NPE closing last perspective
Summary: NPE closing last perspective
Status: RESOLVED DUPLICATE of bug 73359
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 15:14 EDT by Grant Gayed CLA
Modified: 2004-09-20 15:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-09-20 15:14:58 EDT
0920 nightly build

- start eclipse, by default it opens with just an empty Resource perspective
- close this Resource perspective and you'll get the following NPE:

java.lang.NullPointerException
	at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveChanged
(WorkbenchWindow.java:944)
	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:1252)
	at org.eclipse.ui.internal.WorkbenchWindow.closePage
(WorkbenchWindow.java:694)
	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.closePerspective
(WorkbenchPage.java:1089)
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective
(WorkbenchPage.java:1056)
	at org.eclipse.ui.internal.PerspectiveSwitcher$9.widgetSelected
(PerspectiveSwitcher.java:824)
	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:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)
Comment 1 Billy Biggs CLA 2004-09-20 15:15:53 EDT

*** This bug has been marked as a duplicate of 73359 ***