catch and tolerate INRE in test view getData (EA-81216 - INRE: FileBasedIndexImpl.handleDumbMode)

This commit is contained in:
peter
2016-04-04 18:40:22 +02:00
parent 519aec2717
commit 923c09d4da
@@ -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