From 9261e0802bd00b7df0bbfda77e9af0f60f82550f Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 20 Aug 2020 20:11:53 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/MessageHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 9458d8cebe..96bea63387 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -338,7 +338,8 @@ public class MessageHelper { // Build message ContentType ct = new ContentType("multipart/signed"); - ct.setParameter("micalg", micalg); + if (micalg != null) + ct.setParameter("micalg", micalg); ct.setParameter("protocol", "application/pgp-signature"); String ctx = ct.toString(); int slash = ctx.indexOf("/");