eltos / SimpleDialogFragments

An Android library to create dialogs with ease and handle user interaction reliably, using fragments and material design.
Apache License 2.0
119 stars 17 forks source link

Crash in eltos.simpledialogfragment.form.Input.writeToParcel #86

Closed mtotschnig closed 1 year ago

mtotschnig commented 1 year ago

Using current main branch, deploying the test application. Click on any example, that uses the Input form element. for example "Form with different input types". Then put app into background and foreground again.

Expected result: App is restored to its previous state with dialogue open Actual result. App is restarted.

Crash trace:

FATAL EXCEPTION: main
Process: eltos.simpledialogfragments.test, PID: 18419
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Boolean.toString()' on a null object reference
at eltos.simpledialogfragment.form.Input.writeToParcel(Input.java:648)
at android.os.Parcel.writeParcelable(Parcel.java:1952)
at android.os.Parcel.writeValue(Parcel.java:1858)
at android.os.Parcel.writeList(Parcel.java:1140)
at android.os.Parcel.writeValue(Parcel.java:1880)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:1023)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1620)
at android.os.Bundle.writeToParcel(Bundle.java:1304)
at android.os.Parcel.writeBundle(Parcel.java:1092)
at androidx.fragment.app.FragmentState.writeToParcel(FragmentState.java:125)
at android.os.Parcel.writeTypedObject(Parcel.java:1785)
at android.os.Parcel.writeTypedList(Parcel.java:1664)
at android.os.Parcel.writeTypedList(Parcel.java:1621)
at androidx.fragment.app.FragmentManagerState.writeToParcel(FragmentManagerState.java:58)
at android.os.Parcel.writeParcelable(Parcel.java:1952)
at android.os.Parcel.writeValue(Parcel.java:1858)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:1023)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1620)
at android.os.Bundle.writeToParcel(Bundle.java:1304)
at android.os.Parcel.writeBundle(Parcel.java:1092)
at android.os.Parcel.writeValue(Parcel.java:1849)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:1023)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1620)
at android.os.Bundle.writeToParcel(Bundle.java:1304)
at android.os.Parcel.writeBundle(Parcel.java:1092)
at android.os.Parcel.writeValue(Parcel.java:1849)
at android.os.BaseBundle.dumpStats(BaseBundle.java:1690)
at android.os.BaseBundle.dumpStats(BaseBundle.java:1727)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:150)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7842)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)