From 42abdde529a48cf542f4ee80c3ec4a925a4b3535 Mon Sep 17 00:00:00 2001 From: Gregory Shrago Date: Thu, 21 Oct 2010 18:20:13 +0400 Subject: [PATCH] EA-22466 - INRE: FileBasedIndex.handleDumbMode --- .../intelliLang/inject/config/JspSupportProxyImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/IntelliLang/javaee-support/org/intellij/plugins/intelliLang/inject/config/JspSupportProxyImpl.java b/plugins/IntelliLang/javaee-support/org/intellij/plugins/intelliLang/inject/config/JspSupportProxyImpl.java index 8bca634e7851..e4f258927fa0 100644 --- a/plugins/IntelliLang/javaee-support/org/intellij/plugins/intelliLang/inject/config/JspSupportProxyImpl.java +++ b/plugins/IntelliLang/javaee-support/org/intellij/plugins/intelliLang/inject/config/JspSupportProxyImpl.java @@ -16,7 +16,9 @@ package org.intellij.plugins.intelliLang.inject.config; import com.intellij.openapi.module.Module; +import com.intellij.openapi.project.IndexNotReadyException; import com.intellij.psi.impl.source.jsp.JspManager; +import com.intellij.util.ArrayUtil; import org.jetbrains.annotations.NotNull; /** @@ -26,6 +28,11 @@ public class JspSupportProxyImpl extends JspSupportProxy { @NotNull @Override public String[] getPossibleTldUris(Module module) { - return JspManager.getInstance(module.getProject()).getPossibleTldUris(module); + try { + return JspManager.getInstance(module.getProject()).getPossibleTldUris(module); + } + catch (IndexNotReadyException e) { + return ArrayUtil.EMPTY_STRING_ARRAY; + } } }