Add missing readAction
This commit is contained in:
committed by
Nikolay Krasko
parent
9ab4aafa01
commit
aa2ca1a7d5
@@ -192,7 +192,7 @@ class KotlinEvaluator(val codeFragment: JetCodeFragment,
|
|||||||
.filter { it.relativePath != "$packageInternalName.class" }
|
.filter { it.relativePath != "$packageInternalName.class" }
|
||||||
.sortBy { it.relativePath.length() }
|
.sortBy { it.relativePath.length() }
|
||||||
|
|
||||||
val funName = extractedFunction.name
|
val funName = runReadAction { extractedFunction.name }
|
||||||
if (funName == null) {
|
if (funName == null) {
|
||||||
throw IllegalStateException("Extracted function should have a name: ${extractedFunction.text}")
|
throw IllegalStateException("Extracted function should have a name: ${extractedFunction.text}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user