Uncaught Kotlin exception: kotlin.IllegalStateExce...
# compose-ios
j
Uncaught Kotlin exception: kotlin.IllegalStateException: Required value was null. at 0 Aaden Menu 0x102eeb5ab kfun:kotlin.Throwable#<init>(kotlin.String?){} + 123 at 1 Aaden Menu 0x102ee378f kfun:kotlin.Exception#<init>(kotlin.String?){} + 119 at 2 Aaden Menu 0x102ee3bd3 kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 119 at 3 Aaden Menu 0x102ee42e3 kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 119 at 4 Aaden Menu 0x10353233f kfun:androidx.compose.ui.focus#performCustomRequestFocus__at__androidx.compose.ui.focus.FocusTargetNode(androidx.compose.ui.focus.FocusDirection){}androidx.compose.ui.focus.CustomDestinationResult + 1115 at 5 Aaden Menu 0x10353290f kfun:androidx.compose.ui.focus#performCustomRequestFocus__at__androidx.compose.ui.focus.FocusTargetNode(androidx.compose.ui.focus.FocusDirection){}androidx.compose.ui.focus.CustomDestinationResult + 2603
d
Hey. You must go to your
commonMain
function that you are using in iOS and mark the function as
@Throws(Exception::class)
to avoid functions from crashing the app. And conversely, you have to catch the exception from the iOS app, wherever you are using the function.