Prevent crash

This commit is contained in:
M66B 2018-09-14 17:01:12 +00:00
parent f5b38bd806
commit 6dbd487afc
1 changed files with 2 additions and 1 deletions

View File

@ -941,7 +941,8 @@ public class ServiceSynchronize extends LifecycleService {
if (ex instanceof SendFailedException)
reportError(null, folder.name, ex);
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
if (message != null)
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
if (ex instanceof MessageRemovedException ||
ex instanceof FolderNotFoundException ||