Project: Eclipse_Platform_UI
Bug 191511 [Perspecitves] Workbench.showPerspective gets NullPointerException, if active page have no perspective.
Reported: 2007-06-07 12:20:31 | Status: verified fixed

Build ID: M20070212-1330 Steps To Reproduce: We are creating an Eclipse RCP app. We have a problem that Workbench.showPerspective gets NullPointerException, when the active page has no perspective. 1. Have a page which contains no perspective. 2. Call Workbench.showPerspective 3. Gets NullPointerException in Workbench.showPerspective. More information: To resolve this issue, we just need to add some null checks in Workbench.showPerspective

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java