Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Bokowski2008-04-15 20:07:16 +0000
committerBoris Bokowski2008-04-15 20:07:16 +0000
commit87ca5676124bc0a6f91ad2c664a0734ac49a9190 (patch)
tree07daf9bc666e34e231e3282c55988c0f6c6316a5 /bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java
parent8ee51e58bc0353135a7c7403291c876a8a9feae4 (diff)
downloadeclipse.platform.ui-87ca5676124bc0a6f91ad2c664a0734ac49a9190.tar.gz
eclipse.platform.ui-87ca5676124bc0a6f91ad2c664a0734ac49a9190.tar.xz
eclipse.platform.ui-87ca5676124bc0a6f91ad2c664a0734ac49a9190.zip
Fix for bug 222804: [QuickAccess] Quick access to open perspective failed with event loop exception
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java
index 741b333318a..9337e95c12c 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/EditorProvider.java
@@ -39,6 +39,9 @@ public class EditorProvider extends QuickAccessProvider {
idToElement = new HashMap();
IWorkbenchPage activePage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
+ if (activePage == null) {
+ return new QuickAccessElement[0];
+ }
IEditorReference[] editors = activePage.getEditorReferences();
for (int i = 0; i < editors.length; i++) {
EditorElement editorElement = new EditorElement(editors[i],

Back to the top