Closed tadfisher closed 1 year ago
Welcome and thanks for contributing! Make sure to leave a detailed explanation of the issue.
@tadfisher Thanks for reporting this issue! This should be fixed in the latest version: https://github.com/chRyNaN/serialization-parcelable/releases/tag/0.5.0
The init block in
ByteArrayParcel
throws an NPE becausedata
is not set whensetDataFromByteArray
runs.I'm not sure if this is caused by a compiler change in Kotlin 1.7, because ordinarily you'd get a compiler diagnostic like "data is not initialized".
The easiest fix would be to move the
init { }
block below where thedata
property is initialized.Stacktrace: