Debugger: Add a missing read action (EA-123238)
This commit is contained in:
+1
-1
@@ -144,7 +144,7 @@ class KotlinDebuggerCaches(project: Project) {
|
|||||||
val cache = getInstance(runReadAction { psiElement.project })
|
val cache = getInstance(runReadAction { psiElement.project })
|
||||||
|
|
||||||
val file = runReadAction { psiElement.containingFile as KtFile }
|
val file = runReadAction { psiElement.containingFile as KtFile }
|
||||||
val isInLibrary = LibraryUtil.findLibraryEntry(file.virtualFile, file.project) != null
|
val isInLibrary = runReadAction { LibraryUtil.findLibraryEntry(file.virtualFile, file.project) } != null
|
||||||
|
|
||||||
val key = if (!isInLibrary) file else psiElement
|
val key = if (!isInLibrary) file else psiElement
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user