mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] reusing platform's PsiElement -> VirtualFile method (IJ-CR-12465)
GitOrigin-RevId: b3f2b2ddf105f1a347e1c6dad6d8b54e3ab6b2ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6782a69c0a
commit
17040b5f6d
@@ -795,7 +795,7 @@ public final class PsiImplUtil {
|
||||
return ((LightJavaModule)module).getRootVirtualFile();
|
||||
}
|
||||
else {
|
||||
VirtualFile file = module.getContainingFile().getOriginalFile().getVirtualFile();
|
||||
VirtualFile file = PsiUtilCore.getVirtualFile(module);
|
||||
if (file == null) {
|
||||
throw new IllegalArgumentException("Module '" + module + "' lost its VF; file=" + module.getContainingFile() + "; valid=" + module.isValid());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user