Conversation
|
What is the value of the integer? Does it happen to always be A Bundle is represented as a typed parcelable object on the parcel, which is [int]0 for null or [int]1 + writeToParcel for non-null values. As such, a fixed value of 0 can be used as a shortcut to represent an always null Bundle. This also means, that a value of [int]0 should be fully working for the method signature that accepts a Bundle. So can you please verify the value can be non-zero int? |
We forced the `extraParams` bundle to be non-null in Kotlin, but it was indeed null.
611d933 to
605ca14
Compare
|
Thanks for the very helpful input @mar-v-in. Indeed my conclusion was nonsensical. The real problem was that we forced the |
|
Some more context on how this bug occurred for those curious or seeking to learn from it:
|
We forced the `extraParams` bundle to be non-null in Kotlin, but it was indeed null.
According to latestI've tested this with current apps that feature v2 licensing, namelycom.pairip.licensecheckbehavior, the third parameter in the licensing v2 call is actually an integer and not a Bundle.org.howwefeel.moodmeterandfr.maif.digital.maifetmoi(note: closes on emulator, but console log from the app indicate that license check is successful).Regardless, I've verified against https://github.com/e-foundation/lvl-sample that it still works if an empty bundle is passed.
Related: https://gitlab.e.foundation/e/os/backlog/-/issues/3730
Special thanks to @prplwtf.