Browse Source

Prevent crash

main
M66B 6 years ago
parent
commit
6dbd487afc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -941,7 +941,8 @@ public class ServiceSynchronize extends LifecycleService {
if (ex instanceof SendFailedException) if (ex instanceof SendFailedException)
reportError(null, folder.name, ex); 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 || if (ex instanceof MessageRemovedException ||
ex instanceof FolderNotFoundException || ex instanceof FolderNotFoundException ||


Loading…
Cancel
Save