Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324849

Summary: [Compatibility] NPE thrown when trying to close unavailable perspectives
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2010-09-09 09:47:53 EDT
If a perspective cannot be found anymore in their Eclipse installation, they may wish to close it. This is currently not possible.

java.lang.NullPointerException
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective(WorkbenchPage.java:1086)
	at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher.closePerspective(PerspectiveSwitcher.java:475)
	at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher.access$6(PerspectiveSwitcher.java:471)
	at org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher$13.widgetSelected(PerspectiveSwitcher.java:466)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
Comment 1 Remy Suen CLA 2010-09-09 09:55:24 EDT
Fixed in CVS HEAD.