mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: read access while get placement of element in asCompileElements()
This commit is contained in:
+1
-1
@@ -278,7 +278,7 @@ public class CompilerReferenceServiceImpl extends CompilerReferenceService imple
|
||||
myReadDataLock.lock();
|
||||
try {
|
||||
if (myReader == null) return null;
|
||||
VirtualFile file = PsiUtilCore.getVirtualFile(psiElement);
|
||||
VirtualFile file = ReadAction.compute(() -> PsiUtilCore.getVirtualFile(psiElement));
|
||||
ElementPlace place = ElementPlace.get(file, myProjectFileIndex);
|
||||
if (place == null || (place == ElementPlace.SRC && myDirtyModulesHolder.contains(file))) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user