Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 72825 - [Workbench] NPE on close last perspective
Summary: [Workbench] NPE on close 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 XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Billy Biggs CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 16:17 EDT by Cory Turner CLA
Modified: 2004-09-20 12:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Turner CLA 2004-08-27 16:17:28 EDT
Running with code in head I get this when I close the last open perspective: 

!ENTRY org.eclipse.ui 4 0 Aug 27, 2004 16:11:49.228
!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.closePerspective(WorkbenchPage.java:1090)
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective(WorkbenchPage.java:1057)
	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(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)
Comment 1 Billy Biggs CLA 2004-09-20 12:33:33 EDT

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