Hi all, Can you help me? `val dialogAvatarSource =...
# android
j
Hi all, Can you help me?
Copy code
val dialogAvatarSource = DialogAvatarSource(this)
        dialogAvatarSource.onAvatarSourceChosenListener = object : DialogAvatarSource.OnAvatarSourceChosenListener {
            override fun onCameraClick() {

            }

            override fun onGalleryClick() {

            }
        }
        dialogAvatarSource.show()
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState on dialogAvatarSource.show()
m
@jordan29.04.1197 could you please wrap your code with 3 ` ?
regardless of which, the error is pretty clear, you set
savedInstanceState
as non-null and when the code reached
dialogAvatarSource.show()
,
savedInstanceState
is null
j
Oh, I see thx.