You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ernestoyaquello
I got an error when onRestoreInstanceState is invoke (user open app when it is in background I guess) and user has Android API >= 33 (Tiramisu)
Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'java.lang.Object[] java.lang.Class.ifTable' on a null object reference in method 'boolean java.lang.Class.isAssignableFrom(java.lang.Class)'
It comes from this code : superState = when { SDK_INT >= Build.VERSION_CODES.TIRAMISU -> state.getParcelable(SUPER_STATE_KEY, Parcelable::class.java) else -> @Suppress("DEPRECATION") state.getParcelable(SUPER_STATE_KEY) }
Can you help me ?
PS : Btw, thank you for the library it's a great tool 👍
The text was updated successfully, but these errors were encountered:
@ernestoyaquello
I got an error when onRestoreInstanceState is invoke (user open app when it is in background I guess) and user has Android API >= 33 (Tiramisu)
Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'java.lang.Object[] java.lang.Class.ifTable' on a null object reference in method 'boolean java.lang.Class.isAssignableFrom(java.lang.Class)'
java.lang.Class.isAssignableFrom (Class.java:579)
android.os.Bundle.getParcelable (Bundle.java:947)
com.ernestoyaquello.dragdropswiperecyclerview.DragDropSwipeRecyclerView.onRestoreInstanceState (DragDropSwipeRecyclerView.kt:682)
android.view.View.dispatchRestoreInstanceState (View.java:22756)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
It comes from this code :
superState = when { SDK_INT >= Build.VERSION_CODES.TIRAMISU -> state.getParcelable(SUPER_STATE_KEY, Parcelable::class.java) else -> @Suppress("DEPRECATION") state.getParcelable(SUPER_STATE_KEY) }
Can you help me ?
PS : Btw, thank you for the library it's a great tool 👍
The text was updated successfully, but these errors were encountered: