1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Prevent crash

This commit is contained in:
M66B 2020-08-20 20:11:53 +02:00
parent 1d99df3f6f
commit 9261e0802b

View file

@ -338,7 +338,8 @@ public class MessageHelper {
// Build message // Build message
ContentType ct = new ContentType("multipart/signed"); ContentType ct = new ContentType("multipart/signed");
ct.setParameter("micalg", micalg); if (micalg != null)
ct.setParameter("micalg", micalg);
ct.setParameter("protocol", "application/pgp-signature"); ct.setParameter("protocol", "application/pgp-signature");
String ctx = ct.toString(); String ctx = ct.toString();
int slash = ctx.indexOf("/"); int slash = ctx.indexOf("/");