phldavies
04/29/2022, 9:10 PMjava.lang.NullPointerException: Cannot invoke "kotlin.coroutines.CoroutineContext.get(kotlin.coroutines.CoroutineContext$Key)" because "$this$coroutineName" is null
at kotlinx.coroutines.CoroutineContextKt.getCoroutineName(CoroutineContext.kt:209)
at kotlinx.coroutines.AbstractCoroutine.nameString$kotlinx_coroutines_core(AbstractCoroutine.kt:112)
at kotlinx.coroutines.JobSupport.toDebugString(JobSupport.kt:1053)
at kotlinx.coroutines.JobSupport.toString(JobSupport.kt:1050)
This is fun - I seem to have a Job
with a null CoroutineContext
, but seemingly only in my CI. Has anyone else encountered similar? Thankfully I don’t actually need the usage of Job.toString()
so can remove it from the tests, but it’s still concerning.