Hi, I'm getting crash @ iOS @ Kotlin_Array_get
# multiplatform
s
Hi, I'm getting crash @ iOS @ Kotlin_Array_get
Original Kotlin code:
Copy code
enum class HTTPMethod {
    get, post, patch, put, delete
}
s
It is null pointer dereference. May happen due to unexpected initialization order. Could you share the stacktrace?
s
Example usage:
Copy code
Session.shared.api.request(method: .get,
                                   path: getRequestPath(for: room),
                                   params: params,
                                   useCacheAsFastResponse: false)
@svyatoslav.scherbina Yeah, I've shared stack trace already
s
As far as I can see, you’ve shared the disassembly, not the stacktrace.
s
Yeah, sorry. 1 second.
s
You probably encounter initialization order issues in ktor.
s
How can I influence initialization order?
s
I doubt you can. Please report this issue to #ktor.
s
Thanks a lot. Reported, got an answer ❤️
👍 1
In fact I could, I just had to remove initialization from Global
👍 1