From 1240b29404a25e9009a4acc7c607679d035ab6cb Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 2 Aug 2018 20:19:12 +0000 Subject: [PATCH] Fixed check for missing to recipient --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 561fd99c..547feddd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -477,7 +477,7 @@ public class FragmentCompose extends Fragment { String subject = args.getString("subject"); Address afrom = (ident == null ? null : new InternetAddress(ident.email, ident.name)); - Address ato[] = (TextUtils.isEmpty(to) ? new Address[0] : InternetAddress.parse(to)); + Address ato[] = (TextUtils.isEmpty(to) ? null : InternetAddress.parse(to)); // Build draft boolean update = (draft != null);