mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
IJPL-158517 fix NPE in coroutineDumper
GitOrigin-RevId: 34b97b0d45a90d8fbdab47e6bfe417f389057ef0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
10afd2fead
commit
6e41cff151
@@ -267,7 +267,7 @@ private fun JobTree.toRepresentation(stripTrace: Boolean): JobRepresentationTree
|
|||||||
job is CoroutineScope -> job.coroutineContext
|
job is CoroutineScope -> job.coroutineContext
|
||||||
debugInfo !== null -> debugInfo.context
|
debugInfo !== null -> debugInfo.context
|
||||||
else -> EmptyCoroutineContext
|
else -> EmptyCoroutineContext
|
||||||
}
|
} ?: EmptyCoroutineContext // shouldn't be necessary but see IJPL-158517
|
||||||
val name = if (job is AbstractCoroutine<*> && DEBUG) {
|
val name = if (job is AbstractCoroutine<*> && DEBUG) {
|
||||||
// in DEBUG the name is displayed as part of `job.toString()` for AbstractCoroutine
|
// in DEBUG the name is displayed as part of `job.toString()` for AbstractCoroutine
|
||||||
// see kotlinx.coroutines.AbstractCoroutine.nameString
|
// see kotlinx.coroutines.AbstractCoroutine.nameString
|
||||||
|
|||||||
Reference in New Issue
Block a user