From 091715e23e81cc8bf42fd3b6a01a13ee953ff183 Mon Sep 17 00:00:00 2001 From: Yaroslav Lepenkin Date: Mon, 12 Oct 2015 14:07:00 +0300 Subject: [PATCH] fixed EA-66624 --- .../autodetect/DetectedIndentOptionsNotificationProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java b/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java index a1e7a3788ceb..c2450d4d5e35 100644 --- a/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java +++ b/platform/lang-impl/src/com/intellij/psi/codeStyle/autodetect/DetectedIndentOptionsNotificationProvider.java @@ -118,6 +118,7 @@ public class DetectedIndentOptionsNotificationProvider extends EditorNotificatio { Project project = file.getProject(); FileEditorManager fileEditorManager = FileEditorManager.getInstance(project); + if (fileEditorManager == null) return; FileEditor fileEditor = fileEditorManager.getSelectedEditor(vFile); if (fileEditor != null) { Boolean notifiedFlag = fileEditor.getUserData(NOTIFIED_FLAG);