Prevent crash

pull/168/head
M66B 5 years ago
parent 02b46c70c3
commit 0086dd99cc

@ -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…
Cancel
Save