I'm building an APK (with kotlin) that gets loaded...
# announcements
b
I'm building an APK (with kotlin) that gets loaded by a 3rd party App (using some ClassLoader) and run as a plugin. This has mostly worked fine but lately I've noticed some pretty inconsistent and unexpected behavior from the kotlin code. Specifically, the last problem I've been dealing with is an expression like:
val t = if (metadata == null) listOf() else metadata.map { ... }
. Sometimes when i run the code I get
t == null
, which should be impossible. Is there any known issues/limitations with Kotlin + ClassLoaders?