FATAL EXCEPTION: main
Process: com.bangkit.coffee, PID: 26216
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.Any
at me.naingaungluu.formconductor.FormImpl.submit(FormImpl.kt:183)
at me.naingaungluu.formconductor.composeui.scope.FormScopeImpl.submit(FormScopeImpl.kt:29)
...
But if you change the default into empty string instead null, the problem is gone
val address: String? = ""
The problem exists if you update the form via submit()
Let's say you have this simple form
In the UI using effect you update the form by submitting it
This causing an error like this
But if you change the default into empty string instead null, the problem is gone
The problem exists if you update the form via
submit()