mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PsiFileImpl: don't take stamp from invalid context (EA-97779 - PIEAE: LeafPsiElement.invalid)
This commit is contained in:
@@ -406,7 +406,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
@Override
|
||||
public long getModificationStamp() {
|
||||
PsiElement context = getContext();
|
||||
PsiFile contextFile = context == null ? null : context.getContainingFile();
|
||||
PsiFile contextFile = context == null || !context.isValid() ? null : context.getContainingFile();
|
||||
long contextStamp = contextFile == null ? 0 : contextFile.getModificationStamp();
|
||||
return myModificationStamp + contextStamp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user