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

java.lang.StringIndexOutOfBoundsException when scanning a AZTEC code #149

Open
ElishaAz opened this issue Nov 6, 2022 · 1 comment
Open

Comments

@ElishaAz
Copy link

ElishaAz commented Nov 6, 2022

I got a java.lang.StringIndexOutOfBoundsException when scanning a specific AZTEC code.
I will not share it here, as it contains private information.
Here is the stack trace:

java.lang.StringIndexOutOfBoundsException: length=149; index=149
        at java.lang.String.charAt(Native Method)
        at com.example.barcodescanner.model.schema.BoardingPass$Companion.parse(BoardingPass.kt:50)
        at com.example.barcodescanner.usecase.BarcodeParser.parseSchema(BarcodeParser.kt:26)
        at com.example.barcodescanner.usecase.BarcodeParser.parseResult(BarcodeParser.kt:12)
        at com.example.barcodescanner.feature.tabs.scan.ScanBarcodeFromCameraFragment.handleScannedBarcode(ScanBarcodeFromCameraFragment.kt:240)
        at com.example.barcodescanner.feature.tabs.scan.ScanBarcodeFromCameraFragment.$r8$lambda$rHL_73-k4ZYCMBygp3TtPOjHzhc(Unknown Source:0)
        at com.example.barcodescanner.feature.tabs.scan.ScanBarcodeFromCameraFragment$$ExternalSyntheticLambda5.onDecoded(Unknown Source:2)
        at com.budiyev.android.codescanner.Decoder$DecoderThread.run(Decoder.java:141)

The app crashes immediately after scanning, every time.

@Ferguson44
Copy link

9

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

2 participants