Prevent crash

This commit is contained in:
M66B
2019-06-26 20:42:52 +02:00
parent 18f90b24a1
commit 171eb97e55

View File

@@ -637,7 +637,8 @@ public class MessageHelper {
}
long getReceived() throws MessagingException {
return imessage.getReceivedDate().getTime();
Date received = imessage.getReceivedDate();
return (received == null ? new Date() : received).getTime();
}
Long getSent() throws MessagingException {