mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 13:47:04 +00:00
Prevent crash
This commit is contained in:
parent
02b46c70c3
commit
0086dd99cc
1 changed files with 2 additions and 0 deletions
|
@ -1683,6 +1683,8 @@ class Core {
|
|||
// Fallback to date only search
|
||||
imessages = ifolder.search(new ReceivedDateTerm(ComparisonTerm.GE, new Date(sync_time)));
|
||||
}
|
||||
if (imessages == null)
|
||||
imessages = new Message[0];
|
||||
Log.i(folder.name + " remote count=" + imessages.length +
|
||||
" search=" + (SystemClock.elapsedRealtime() - search) + " ms");
|
||||
|
||||
|
|
Loading…
Reference in a new issue