From 7aa42e95d6071dba95998c1eed8ad2c621abe737 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Aug 2018 08:54:58 +0000 Subject: [PATCH] The message sent date is optional --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 8ac017e3..483bef0b 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -898,7 +898,7 @@ public class ServiceSynchronize extends LifecycleService { message.subject = imessage.getSubject(); message.body = helper.getHtml(); message.received = imessage.getReceivedDate().getTime(); - message.sent = imessage.getSentDate().getTime(); + message.sent = (imessage.getSentDate() == null ? null : imessage.getSentDate().getTime()); message.seen = seen; message.ui_seen = seen; message.ui_hide = false;