From f35150d12a202a2815b7a28ff618c0f0a005f0c2 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 8 Jul 2011 19:46:11 +0200 Subject: [PATCH] no project -> no autopopup --- .../codeInsight/editorActions/CompletionAutoPopupHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/CompletionAutoPopupHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/CompletionAutoPopupHandler.java index ecf9e4ba8799..22c9126264e8 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/CompletionAutoPopupHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/CompletionAutoPopupHandler.java @@ -89,7 +89,8 @@ public class CompletionAutoPopupHandler extends TypedHandlerDelegate { public static void scheduleAutoPopup(final Editor editor, @Nullable final Condition condition) { final Project project = editor.getProject(); - assert project != null; + if (project == null) return; + final CompletionPhase.AutoPopupAlarm phase = new CompletionPhase.AutoPopupAlarm(false, editor); CompletionServiceImpl.setCompletionPhase(phase);