Cleanup (NPE fix)

This commit is contained in:
Roman Shevchenko
2015-12-30 17:40:58 +01:00
parent 5e72a0447b
commit ae197ecf43
@@ -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();
}