https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

siraf

01/21/2023, 11:28 PM
Hi, has anyone ever got this
EXC_BAD_ACCESS (code=1, address=0x0)
error in Xcode when making an API call on the KMM side? thanks.
l

Landry Norris

01/23/2023, 2:38 PM
That typically means there was a null pointer dereference that wasn't in your Kotlin code. You can tell this because the bad access is at 0x0. You can also tell that it's directly accessing the value, instead of a field, since the address isn't 0x20, or some other low, but non-zero address.
This can also happen when you call .pointed on a null CPointer.
110 Views