mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
Prevent exception
This commit is contained in:
parent
4c2eb9e073
commit
4e82cc88b2
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue