Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324849 - [Compatibility] NPE thrown when trying to close unavailable perspectives
Summary: [Compatibility] NPE thrown when trying to close unavailable perspectives
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M2   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 09:47 EDT by Remy Suen CLA
Modified: 2010-09-09 09:55 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 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.