1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Prevent exception

This commit is contained in:
M66B 2019-10-14 09:21:27 +02:00
parent 4c2eb9e073
commit 4e82cc88b2
2 changed files with 3 additions and 2 deletions

View file

@ -457,7 +457,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
rules, null);
found++;
}
db.message().setMessageFound(message.account, message.thread);
if (message != null)
db.message().setMessageFound(message.account, message.thread);
} catch (MessageRemovedException ex) {
Log.w(browsable.name + " boundary server", ex);
} catch (FolderClosedException ex) {

View file

@ -1849,7 +1849,7 @@ class Core {
istore, ifolder, (MimeMessage) isub[j],
false, download,
rules, state);
ids[from + j] = message.id;
ids[from + j] = (message == null ? null : message.id);
} catch (MessageRemovedException ex) {
Log.w(folder.name, ex);
} catch (FolderClosedException ex) {