Crash on import pkpass without pass data #2317
Labels
common: frequent
Affects or can be seen by most users regularly or impacts most users' first experience
severity: major
Severely degrades major functionality or product features, with no satisfactory workaround
type: bug
Something isn't working
Version: 2.34.4 from F-Droid
Catima crashed when I tried to import loyalty card from pkpass file.
Crash happens because of this unhandled exception
Android/app/src/main/java/protect/card_locker/PkpassParser.kt
Line 320 in 3f9b772
Pkpass file may not contain one of
"boardingPass", "coupon", "eventTicket", "generic"
fields. Manually adding empty "generic" field to the pkpass, solved the problem with certain pkpass and it successfully imported, because import of passdata just inserts text in card description/note field and nothing more.Maybe change this confition to
!hasPassData || !pkPassHasBarcodes
and then add exception handler with meaningful message.Android/app/src/main/java/protect/card_locker/PkpassParser.kt
Line 319 in 3f9b772
Thank you.
The text was updated successfully, but these errors were encountered: