mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
@@ -79,7 +79,7 @@ public class CopyElementAction extends AnAction {
|
||||
PsiElement element = getTargetElement(editor, project);
|
||||
boolean result = element != null && CopyHandler.canCopy(new PsiElement[]{element});
|
||||
|
||||
if (!result) {
|
||||
if (!result && file != null) {
|
||||
result = CopyHandler.canCopy(new PsiElement[]{file});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user