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