mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[grazie] IJPL-209646 NPE in RenameTo isAvailable method
GitOrigin-RevId: 126f231c0ed2a5ce5448c509925a93f3e7ca0b4b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9e0f1e4c41
commit
ef65dc7d23
@@ -47,7 +47,8 @@ public class RenameTo extends IntentionAndQuickFixAction implements Iconable, Ev
|
||||
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull Project project, @Nullable Editor editor, PsiFile psiFile) {
|
||||
PsiElement element = Objects.requireNonNull(pointer.getElement());
|
||||
PsiElement element = pointer.getElement();
|
||||
if (element == null) return false;
|
||||
var presentationName = getPresentationName(element);
|
||||
if (presentationName == null) return false;
|
||||
generateSuggestions(presentationName.getSecond(), element);
|
||||
|
||||
Reference in New Issue
Block a user