EA-39147 - NPE: BaseExternalAnnotationsManager.compare

This commit is contained in:
Evgeny Gerashchenko
2012-09-12 18:49:35 +04:00
parent c16df29000
commit fc18fca21d
@@ -258,6 +258,7 @@ public abstract class BaseExternalAnnotationsManager extends ExternalAnnotations
final VirtualFile ext = root.findFileByRelativePath(packageName.replace(".", "/") + "/" + ANNOTATIONS_XML);
if (ext == null) continue;
final PsiFile psiFile = myPsiManager.findFile(ext);
if (psiFile == null) continue;
possibleAnnotationsXmls.add(psiFile);
}
if (!possibleAnnotationsXmls.isEmpty()) {