mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 10:16:45 +00:00
Fixed crash on null sent time
This commit is contained in:
parent
fb1874be66
commit
b824f12a45
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
if (EntityFolder.isOutgoing(m1.folderType))
|
||||
return -Long.compare(m1.received, m2.received);
|
||||
else
|
||||
return -Long.compare(m1.sent, m2.sent);
|
||||
return -Long.compare(
|
||||
m1.sent == null ? 0 : m1.sent,
|
||||
m2.sent == null ? 0 : m2.sent);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue