prevent PsiFileImpl.isValid recursion (IDEA-CR-22738)

This commit is contained in:
peter
2017-07-07 15:22:41 +02:00
parent 07344b750d
commit d2aae11660
@@ -162,7 +162,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
// but some VFS listeners receive the same events before that and ask PsiFile.isValid
return false;
}
if (myOriginalFile != null && !myOriginalFile.isValid()) {
if (myOriginalFile != null && myOriginalFile != this && !myOriginalFile.isValid()) {
return false;
}
return !myInvalidated;