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
Thanks a lot for the huge effort of making available this library.
While using the SDK to store a list of sealed classes I ran into the following error on decoding. NullPointerException: null cannot be cast to non-null type kotlin.collections.Map<*, *>
I managed to track it to firebase-common/androidMain/_decoders.ktFirebaseDecoder.structureDecoder function. (and also its iOS equivalent)
It happens because the descriptor is expecting a value property that was not encoded. I managed to fix it with the following
Hi!,
Thanks a lot for the huge effort of making available this library.
While using the SDK to store a list of sealed classes I ran into the following error on decoding.
NullPointerException: null cannot be cast to non-null type kotlin.collections.Map<*, *>
I managed to track it to
firebase-common/androidMain/_decoders.kt
FirebaseDecoder.structureDecoder
function. (and also its iOS equivalent)It happens because the descriptor is expecting a
value
property that was not encoded. I managed to fix it with the followingAnd similar for the iOS but maybe there is a more elegant way?
I created a PR with failing tests that points out the problem.
#365
The text was updated successfully, but these errors were encountered: