Project: Eclipse_Platform_UI
Bug 304250 [Compatibility] NPE thrown when restoring a view from its reference
Reported: 2010-03-01 14:08:57 | Status: resolved fixed

1. Open the 'Outline' view. 2. Open a Java file with a field in it. 3. Right-click on the field > Read Access > Workspace 4. An NPE is thrown. java.lang.NullPointerException at org.eclipse.search2.internal.ui.SearchViewManager.activateSearchView(SearchViewManager.java:99) at org.eclipse.search2.internal.ui.InternalSearchUI.runSearchInBackground(InternalSearchUI.java:162) at org.eclipse.search.ui.NewSearchUI.runQueryInBackground(NewSearchUI.java:132) at org.eclipse.search.ui.NewSearchUI.runQueryInBackground(NewSearchUI.java:105) at org.eclipse.jdt.internal.ui.search.SearchUtil.runQueryInBackground(SearchUtil.java:79) at org.eclipse.jdt.ui.actions.FindAction.performNewSearch(FindAction.java:284) at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:267) at org.eclipse.jdt.ui.actions.FindReferencesAction.run(FindReferencesAction.java:101) at org.eclipse.jdt.ui.actions.FindAction.run(FindAction.java:211) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/CompatibilityEditor.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/CompatibilityPart.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/CompatibilityView.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/EditorReference.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/ViewReference.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/WorkbenchPage.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/WorkbenchPartReference.java