Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when scanning BR0200000000010670000117668C1 #42

Open
nulliksvierde opened this issue Jan 12, 2022 · 0 comments
Open

Crash when scanning BR0200000000010670000117668C1 #42

nulliksvierde opened this issue Jan 12, 2022 · 0 comments

Comments

@nulliksvierde
Copy link

Hi!

We faced a crash when trying to scan the specific (brasilian) IBAN "BR0200000000010670000117668C1":

Fatal error: Unexpectedly found nil while unwrapping an Optional value: file RFIBANHelper/ISO7064.swift, line 31

We found the IBAN in an example list here: https://www.iban.de/iban-laenderliste.html

Simply checking the result of Int(remainingInput) for a nil value before force unwrapping it seems to be a valid quickfix to prevent the crash, but since this still won't allow us to scan the IBAN I'm sure there must be a nicer solution ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant