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 1032f58 commit 41319d5Copy full SHA for 41319d5
core/kotlinx-coroutines-core/src/internal/ExceptionsConstuctor.kt
@@ -40,6 +40,6 @@ internal fun <E : Throwable> tryCopyException(exception: E): E? {
40
}
41
42
43
- cacheLock.write { exceptionConstructors[exception.javaClass] = ctor }
+ cacheLock.write { exceptionConstructors[exception.javaClass] = (ctor ?: { null }) }
44
return ctor?.invoke(exception) as E?
45
0 commit comments