mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Prevent crash
This commit is contained in:
parent
1d99df3f6f
commit
9261e0802b
1 changed files with 2 additions and 1 deletions
|
@ -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("/");
|
||||||
|
|
Loading…
Reference in a new issue