Skip to content
Snippets Groups Projects
Unverified Commit 6197f5a4 authored by akwizgran's avatar akwizgran
Browse files

Catch runtime exceptions from QR code decoder. #298

parent 0f9338f5
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,8 @@ public class QrCodeDecoder implements PreviewConsumer, PreviewCallback {
result = reader.decode(bitmap);
} catch (ReaderException e) {
return null; // No barcode found
} catch (RuntimeException e) {
return null; // Decoding failed due to bug in decoder
} finally {
reader.reset();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment