mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-29530 - NPE: ShowImplementationsAction$ImplementationsUpdaterTask.<init>
This commit is contained in:
+3
-1
@@ -47,6 +47,7 @@ import com.intellij.ui.popup.PopupPositionManager;
|
||||
import com.intellij.ui.popup.PopupUpdateProcessor;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.*;
|
||||
@@ -232,7 +233,7 @@ public class ShowImplementationsAction extends AnAction implements PopupAction {
|
||||
}
|
||||
|
||||
private void updateInBackground(Editor editor,
|
||||
PsiElement element,
|
||||
@Nullable PsiElement element,
|
||||
ImplementationViewComponent component,
|
||||
String title,
|
||||
AbstractPopup popup) {
|
||||
@@ -243,6 +244,7 @@ public class ShowImplementationsAction extends AnAction implements PopupAction {
|
||||
}
|
||||
}
|
||||
|
||||
if (element == null) return; //already found
|
||||
final ImplementationsUpdaterTask task = new ImplementationsUpdaterTask(element, editor, title);
|
||||
task.init(popup, component);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user