mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tolerate index access errors from debugger quick evaluate (EA-100697 - INRE: FileBasedIndexImpl.handleDumbMode)
This commit is contained in:
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user