EA-107151 - IAE: ShowParameterInfoHandler.a

This commit is contained in:
Anna Kozlova
2017-09-18 19:05:20 +03:00
parent 9ebe031078
commit a1439d6775
@@ -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
}