From 337754d3377800ea4bcc3ddfc8f3d7928ba7a2a8 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 23 Jan 2020 20:15:58 +0100 Subject: [PATCH] Catch verifier/digest exceptions --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index f3324c6f01..7b2b375718 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -124,7 +124,6 @@ import org.bouncycastle.cms.CMSProcessable; import org.bouncycastle.cms.CMSProcessableFile; import org.bouncycastle.cms.CMSSignedData; import org.bouncycastle.cms.CMSTypedData; -import org.bouncycastle.cms.CMSVerifierCertificateNotValidException; import org.bouncycastle.cms.KeyTransRecipientId; import org.bouncycastle.cms.RecipientInformation; import org.bouncycastle.cms.SignerInformation; @@ -4819,7 +4818,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. result = cert; break; } - } catch (CMSVerifierCertificateNotValidException ex) { + } catch (CMSException ex) { Log.w(ex); } }