I've run into a strange one recently, and wonder i...
# android
n
I've run into a strange one recently, and wonder if anyone else has any advice. A java.io.Serializable kotlin data class was written, and then later a 'by lazy' delegate property was added to that class. This showed up as an exception during serialization in two different ways: after Proguard was run, the delegate wasn't getting found, and before proguard an NPE was produced when accessing the delegated property after deserialization. I tried adding
@delegate:Transient
, but in the end, removed the 'by lazy' in favour of a Getter. Thanks for any advice or clarification.
I guess this isn't specifically Android related, but it is the environment that this app is built for.