Project: Eclipse_Platform_UI
Bug 326314 [Compatibility] NPE caused by attempting to query editors that are no longer in the installation
Reported: 2010-09-27 11:02:14 | Status: resolved fixed

Build: 4.1 M2 When I attempted to start this build on an existing workspace, I got this NPE: Caused by: java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchPage.checkEditor(WorkbenchPage.java:1558) at org.eclipse.ui.internal.WorkbenchPage.findEditors(WorkbenchPage.java:1530) at org.eclipse.ui.internal.WorkbenchPage.findEditor(WorkbenchPage.java:1514) at org.eclipse.ui.NavigationLocation.getEditorPart(NavigationLocation.java:44) at org.eclipse.ui.NavigationLocation.getText(NavigationLocation.java:60) After that, attempting to open any view via Quick Access results in more errors: java.lang.NullPointerException at org.eclipse.ui.internal.EditorReference.getId(EditorReference.java:115) at org.eclipse.ui.internal.quickaccess.EditorElement.getId(EditorElement.java:49) at org.eclipse.ui.internal.quickaccess.EditorProvider.getElements(EditorProvider.java:48) at org.eclipse.ui.internal.quickaccess.QuickAccessProvider.getElementsSorted(QuickAccessProvider.java:56) at org.eclipse.ui.internal.quickaccess.QuickAccessContents.computeMatchingEntries(QuickAccessContents.java:228) at org.eclipse.ui.internal.quickaccess.QuickAccessContents.refresh(QuickAccessContents.java:107) at org.eclipse.ui.internal.quickaccess.QuickAccessContents.access$1(QuickAccessContents.java:101) at org.eclipse.ui.internal.quickaccess.QuickAccessContents$4$1.run(QuickAccessContents.java:419) at org.eclipse.swt.widgets.Display.runTimer(Display.java:4167) This build seems unusable to me.

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