From 5a28cf616d9766d0f423baa80ecbbb1af368d566 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 24 May 2021 09:42:19 -0400 Subject: [PATCH] Do not allow bad QR data to crash. --- .../org/thoughtcrime/securesms/VerifyIdentityActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/VerifyIdentityActivity.java b/app/src/main/java/org/thoughtcrime/securesms/VerifyIdentityActivity.java index 435e474f0..132d7b69f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/VerifyIdentityActivity.java +++ b/app/src/main/java/org/thoughtcrime/securesms/VerifyIdentityActivity.java @@ -420,11 +420,9 @@ public class VerifyIdentityActivity extends PassphraseRequiredActivity implement } else { Toast.makeText(getActivity(), R.string.VerifyIdentityActivity_your_contact_is_running_an_old_version_of_signal, Toast.LENGTH_LONG).show(); } - } catch (FingerprintParsingException e) { + } catch (Exception e) { Log.w(TAG, e); Toast.makeText(getActivity(), R.string.VerifyIdentityActivity_the_scanned_qr_code_is_not_a_correctly_formatted_safety_number, Toast.LENGTH_LONG).show(); - } catch (UnsupportedEncodingException e) { - throw new AssertionError(e); } }