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
The issue is related to calling writeTypedList(null).
If we use the proposed solution the read will not crash but im not sure if its a good idea since you should not call writeTypedList(null) in the first place...
WDYT?
danielgomezrico
changed the title
Current list parcelable code crashes when the list is empty
Deserialization for list parcelable crashes when you call writeTypedList(null) first
Nov 20, 2018
Current generated code for list of parcelables will crash if you put an empty list.
Error example
Example code
If you create the people with
People(listOf())
the methodwriteTypedList
will crash with:Solution
This can be fixed if the generated code in the constructor looks like:
instead of:
The text was updated successfully, but these errors were encountered: