mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SingleRootFileViewProvider: cache NULL_PSI_FILE
This commit is contained in:
@@ -174,6 +174,9 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
|
||||
PsiFile psiFile = myPsiFile.get();
|
||||
if (psiFile == null) {
|
||||
psiFile = createFile();
|
||||
if (psiFile == null) {
|
||||
psiFile = PsiUtilCore.NULL_PSI_FILE;
|
||||
}
|
||||
boolean set = myPsiFile.compareAndSet(null, psiFile);
|
||||
if (!set) {
|
||||
if (psiFile instanceof PsiFileImpl) {
|
||||
|
||||
Reference in New Issue
Block a user