mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
catch and tolerate INRE in test view getData (EA-81216 - INRE: FileBasedIndexImpl.handleDumbMode)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user