File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,13 @@ object UtTestsDialogProcessor {
236236 when (val approach = model.typeReplacementApproach) {
237237 DoNotReplace -> emptyList()
238238 is ReplaceIfPossible -> {
239- val contentRoots = listOfNotNull(
240- model.srcModule,
241- springConfigClass?.module
242- ).distinct().flatMap { module ->
243- ModuleRootManager .getInstance(module).contentRoots.toList()
239+ val contentRoots = runReadAction {
240+ listOfNotNull(
241+ model.srcModule,
242+ springConfigClass?.module
243+ ).distinct().flatMap { module ->
244+ ModuleRootManager .getInstance(module).contentRoots.toList()
245+ }
244246 }
245247 process.getSpringBeanQualifiedNames(
246248 classpathForClassLoader,
You can’t perform that action at this time.
0 commit comments