(CoroutineDebugger) No restored frames in coroutine context found.

This commit is contained in:
Vladimir Ilmov
2020-04-30 13:13:52 +02:00
parent 87393398f2
commit 1128d659a4
@@ -28,8 +28,8 @@ class ContinuationHolder private constructor(val context: DefaultExecutionContex
if (coroutineStackFrame != null) if (coroutineStackFrame != null)
consumer.add(coroutineStackFrame) consumer.add(coroutineStackFrame)
} }
val lastRestoredFrame = continuationStack.coroutineStack.last() val lastRestoredFrame = continuationStack.coroutineStack.lastOrNull()
return findCoroutineInformation(lastRestoredFrame.baseContinuationImpl.coroutineOwner, consumer) return findCoroutineInformation(lastRestoredFrame?.baseContinuationImpl?.coroutineOwner, consumer)
} catch (e: Exception) { } catch (e: Exception) {
log.error("Error while looking for stack frame.", e) log.error("Error while looking for stack frame.", e)
} }