mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid invalidation of NULL_PSI_FILE
This commit is contained in:
@@ -178,7 +178,7 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
|
||||
psiFile = PsiUtilCore.NULL_PSI_FILE;
|
||||
}
|
||||
boolean set = myPsiFile.compareAndSet(null, psiFile);
|
||||
if (!set) {
|
||||
if (!set && psiFile != PsiUtilCore.NULL_PSI_FILE) {
|
||||
PsiFile alreadyCreated = myPsiFile.get();
|
||||
if (alreadyCreated == psiFile) {
|
||||
LOG.error(this + ".createFile() must create new file instance but got the same: " + psiFile);
|
||||
|
||||
Reference in New Issue
Block a user