mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-83348 - ISE: SubstrateRef$.getContainingFile
This commit is contained in:
@@ -92,7 +92,9 @@ public abstract class SubstrateRef {
|
||||
@NotNull
|
||||
@Override
|
||||
public PsiFile getContainingFile() {
|
||||
return SharedImplUtil.getContainingFile(node);
|
||||
PsiFile file = SharedImplUtil.getContainingFile(node);
|
||||
if (file == null) throw new PsiInvalidElementAccessException(node.getPsi());
|
||||
return file;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user