mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (NPE fix)
This commit is contained in:
@@ -110,7 +110,7 @@ public class CommonRefactoringUtil {
|
||||
return JBIterable.from(elements).transform(new Function<PsiElement, PsiElement>() {
|
||||
@Override
|
||||
public PsiElement fun(PsiElement e) {
|
||||
return e instanceof PsiFileSystemItem ? e.getParent() : e;
|
||||
return e instanceof PsiFileSystemItem && e.getParent() != null ? e.getParent() : e;
|
||||
}
|
||||
}).toSet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user