1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-21 13:47:04 +00:00

Prevent crash

This commit is contained in:
M66B 2019-12-01 12:42:02 +01:00
parent 02b46c70c3
commit 0086dd99cc

View file

@ -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");