Hi, anyone have trouble access MutableMap in kotli...
# multiplatform
h
Hi, anyone have trouble access MutableMap in kotlin? I have something defined in kotlin like this
Copy code
abstract class KotlinClass() {
    val info: MutableMap<String, Any> = mutableMapOf()
}
then in swift class I have something like this
Copy code
public class SwiftClass: KotlinClass {
    ...
}

var myClass = SwiftClass()
<http://myClass.info[%22key%22]|myClass.info["key"]> = value
In some other places if I try to access it like this way
Copy code
if let mValue = <http://myClass.info[%22key%22]|myClass.info["key"]> {
...
}
I’ll get a address bad access crash sometimes, it’s not happening every time but from time to time