How in C handle nullable pointer from kotlin native? I generate sharable library and use in C code. I return from Kotlin String? , in C header I have const char*. And I get an exception when I call method.
o
olonho
06/25/2019, 3:30 PM
could you please elaborate what do you do and what expect to get
z
Zh Efimenko
06/26/2019, 6:51 AM
I have a method in Kotlin/Native for example:
Copy code
fun getSubject():String?{}
It can return as
string
as
null
, but I cannot understand how I can handle this in C code. In C code I have: