mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] file validity check in external annotation manager (EA-72767)
This commit is contained in:
@@ -254,7 +254,7 @@ public abstract class BaseExternalAnnotationsManager extends ExternalAnnotations
|
||||
String relativePath = ((PsiJavaFile)containingFile).getPackageName().replace('.', '/') + '/' + ANNOTATIONS_XML;
|
||||
for (VirtualFile root : getExternalAnnotationsRoots(virtualFile)) {
|
||||
VirtualFile ext = root.findFileByRelativePath(relativePath);
|
||||
if (ext != null) {
|
||||
if (ext != null && ext.isValid()) {
|
||||
PsiFile psiFile = myPsiManager.findFile(ext);
|
||||
if (psiFile != null) {
|
||||
possibleAnnotations.add(psiFile);
|
||||
|
||||
Reference in New Issue
Block a user