tolerate index access errors from debugger quick evaluate (EA-100697 - INRE: FileBasedIndexImpl.handleDumbMode)

This commit is contained in:
peter
2017-04-27 17:58:18 +02:00
parent ce03a78bc0
commit 0e717f9460
@@ -28,6 +28,7 @@ import com.intellij.openapi.editor.event.EditorMouseAdapter;
import com.intellij.openapi.editor.event.EditorMouseEvent;
import com.intellij.openapi.editor.event.EditorMouseEventArea;
import com.intellij.openapi.editor.event.EditorMouseMotionListener;
import com.intellij.openapi.project.IndexNotReadyException;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.registry.Registry;
@@ -165,7 +166,13 @@ public class ValueLookupManager extends EditorMouseAdapter implements EditorMous
if (myRequest != null && myRequest.isInsideHint(editor, point)) {
return;
}
Promise<AbstractValueHint> hintPromise = handler.createValueHintAsync(myProject, editor, point, type);
Promise<AbstractValueHint> hintPromise;
try {
hintPromise = handler.createValueHintAsync(myProject, editor, point, type);
}
catch (IndexNotReadyException e) {
return;
}
hintPromise.done(hint -> {
if (hint == null)
return;