mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no project -> no autopopup
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user