diff --git a/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt b/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt index 7633a191a1bea..66d199419ada1 100644 --- a/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt +++ b/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/KotlinPositionManager.kt @@ -610,9 +610,9 @@ class KotlinPositionManager(private val debugProcess: DebugProcess) : MultiReque private fun getClassesWithInlinedCode(candidatesWithInline: List, line: Int): List { val candidatesWithInlineInternalNames = candidatesWithInline.map { it.fqnToInternalName() } val futures = debugProcess.virtualMachineProxy.allClasses().map { type -> - hasInlinedLinesToAsync(type, line, candidatesWithInlineInternalNames).thenApply { hasInlinedLines -> - type.takeIf { hasInlinedLines } - } + hasInlinedLinesToAsync(type, line, candidatesWithInlineInternalNames) + .thenApply { hasInlinedLines -> type.takeIf { hasInlinedLines } } + .exceptionally { null } }.toTypedArray() CompletableFuture.allOf(*futures).join() return futures.mapNotNull { it.get() }