Project: Eclipse_Platform_UI
Bug 320158 [Compatibility] NPEs when closing and reopening perspective
Reported: 2010-07-17 06:20:17 | Status: verified fixed

1. Open a fresh e4 workbench 2. Close the Java perspective via the menu (Window > ...) 3. Open the Java perspective again via the perspective switcher Result: Several ERRORs and stack traces on the console (in the host Eclipse): Note: The NPEs do not occur when the perspective is closed via the context menu of the perspective switcher.

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java