Browse Source

Prevent crash

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

+ 3
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1334,6 +1334,9 @@ public class ServiceSynchronize extends LifecycleService {
private void doHeaders(EntityFolder folder, IMAPFolder ifolder, EntityMessage message, DB db) throws MessagingException {
Message imessage = ifolder.getMessageByUID(message.uid);
if (imessage == null)
throw new MessageRemovedException();
Enumeration<Header> headers = imessage.getAllHeaders();
StringBuilder sb = new StringBuilder();
while (headers.hasMoreElements()) {


Loading…
Cancel
Save