From 7d1dcd8577e54b39d5fd4bc9805cfbc5dde4e88c Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 19 Aug 2010 17:21:01 +0400 Subject: [PATCH] project not initialized: brute force fix --- .../codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java index ee6d27286d48..b174dc02cad7 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java @@ -179,7 +179,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx } void repaintErrorStripeRenderer(Editor editor) { - if (myProject.isDisposed()) return; + if (!myProject.isInitialized()) return; final Document document = editor.getDocument(); final PsiFile psiFile = PsiDocumentManager.getInstance(myProject).getPsiFile(document); final EditorMarkupModel markup = (EditorMarkupModel)editor.getMarkupModel(); @@ -588,7 +588,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx public void run() { if (!myUpdateByTimerEnabled) return; if (PowerSaveMode.isEnabled()) return; - if (myDisposed || myProject.isDisposed()) return; + if (myDisposed || !myProject.isInitialized()) return; final Collection activeEditors = myDaemonListeners.getSelectedEditors(); if (activeEditors.isEmpty()) return; Map passes = new THashMap(activeEditors.size());