no project -> no autopopup

This commit is contained in:
peter
2011-07-08 19:47:05 +02:00
parent 04b7f72e55
commit f35150d12a
@@ -89,7 +89,8 @@ public class CompletionAutoPopupHandler extends TypedHandlerDelegate {
public static void scheduleAutoPopup(final Editor editor, @Nullable final Condition<PsiFile> 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);