mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid race condition when calling isValid during stub-ast switching
This commit is contained in:
@@ -253,7 +253,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
synchronized (myStubLock) {
|
||||
StubTree fileStub = derefStub();
|
||||
StubElement childStub = child.getStub();
|
||||
if (fileStub == null || childStub != null && fileStub.getRoot() != childStub.getParentStub()) {
|
||||
if (childStub != null && (fileStub == null || fileStub.getRoot() != childStub.getParentStub())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user