From 923c09d4dabd7eed5f9d2cb6a5a1aee2130acdcd Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 4 Apr 2016 17:57:13 +0200 Subject: [PATCH] catch and tolerate INRE in test view getData (EA-81216 - INRE: FileBasedIndexImpl.handleDumbMode) --- .../intellij/execution/testframework/TestTreeView.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java index 7491384e6224..23dc693799fc 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java @@ -27,6 +27,7 @@ import com.intellij.ide.actions.CopyReferenceAction; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.ide.CopyPasteManager; +import com.intellij.openapi.project.IndexNotReadyException; import com.intellij.openapi.ui.GraphicsConfig; import com.intellij.openapi.util.Disposer; import com.intellij.psi.PsiElement; @@ -144,7 +145,12 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro if (selectionPath == null) return null; final AbstractTestProxy testProxy = getSelectedTest(selectionPath); if (testProxy == null) return null; - return TestsUIUtil.getData(testProxy, dataId, myModel); + try { + return TestsUIUtil.getData(testProxy, dataId, myModel); + } + catch (IndexNotReadyException ignore) { + return null; + } } @Override