We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340155d commit e824eaaCopy full SHA for e824eaa
kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineContext.kt
@@ -23,7 +23,8 @@ import kotlin.coroutines.experimental.CoroutineContext
23
private const val DEBUG_PROPERTY_NAME = "kotlinx.coroutines.debug"
24
25
private val DEBUG = run {
26
- val value = System.getProperty(DEBUG_PROPERTY_NAME)
+ val value = try { System.getProperty(DEBUG_PROPERTY_NAME) }
27
+ catch (e: SecurityException) { null }
28
when (value) {
29
"auto", null -> CoroutineId::class.java.desiredAssertionStatus()
30
"on", "" -> true
0 commit comments