Skip to content

Commit eb5fc24

Browse files
committed
EA-96771 - INRE: FileBasedIndexImpl.handleDumbMode
1 parent dd2e0ad commit eb5fc24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/com/goide/tree/GoStructureViewFactory.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.intellij.openapi.actionSystem.Shortcut;
3030
import com.intellij.openapi.diagnostic.Logger;
3131
import com.intellij.openapi.editor.Editor;
32+
import com.intellij.openapi.project.IndexNotReadyException;
3233
import com.intellij.openapi.util.text.StringUtil;
3334
import com.intellij.psi.PsiElement;
3435
import com.intellij.psi.PsiFile;
@@ -229,7 +230,12 @@ private String getPresentationTextInner() {
229230
return ((GoTypeSpec)element).getName() + appendix;
230231
}
231232
if (element instanceof GoNamedElement) {
232-
GoType type = ((GoNamedElement)element).getGoType(null);
233+
GoType type = null;
234+
try {
235+
type = ((GoNamedElement)element).getGoType(null);
236+
}
237+
catch (IndexNotReadyException ignored) {
238+
}
233239
String typeText = type == null || element instanceof GoAnonymousFieldDefinition ? "" : separator + GoPsiImplUtil.getText(type);
234240
return ((GoNamedElement)element).getName() + typeText;
235241
}

0 commit comments

Comments
 (0)