From a1439d6775a0118a66f8faa5e2c2c556e7cf7b96 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 18 Sep 2017 17:43:19 +0300 Subject: [PATCH] EA-107151 - IAE: ShowParameterInfoHandler.a --- .../src/com/intellij/codeInsight/AutoPopupController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/AutoPopupController.java b/platform/lang-impl/src/com/intellij/codeInsight/AutoPopupController.java index b2a66b5c5574..31544b14e745 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/AutoPopupController.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/AutoPopupController.java @@ -197,7 +197,9 @@ public class AutoPopupController implements Disposable { int lbraceOffset = editor.getCaretModel().getOffset() - 1; try { PsiFile file1 = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument()); - ShowParameterInfoHandler.invoke(myProject, editor, file1, lbraceOffset, highlightedMethod, false, true); + if (file1 != null) { + ShowParameterInfoHandler.invoke(myProject, editor, file1, lbraceOffset, highlightedMethod, false, true); + } } catch (IndexNotReadyException ignored) { //anything can happen on alarm }