Fix bug in BaseParceledListSlice implementation.
Under specific conditions, parceled list can be written in such a way that writing of new list starts when destination parcel is just above MAX_IPC_SIZE. In that case "0" is written to parcel to indicate that there will be no inline items written and writing of the list will start with extra items. When unparcelling such list, listElementClass is not determined and stays equal to null, because it only can be determined if there were some inline items read first, before switching to extra. This leads to random unparcelling failures with the following error message: Can't unparcel type <typename> in list of type null. Test: manually verified Bug: 186193371 Fix: 151481291 Bug: 156514418 Fix: 169191099 Change-Id: I849bf46158b6d9b109139b19b93a6a1ba16ecc77
Loading
Please register or sign in to comment