1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Prevent crash

This commit is contained in:
M66B 2018-12-29 12:32:37 +00:00
parent 4ac5d36cc8
commit 1ac71c9081

View file

@ -1585,7 +1585,8 @@ public class FragmentMessages extends FragmentEx {
try {
db.beginTransaction();
for (EntityMessage message : db.message().getMessageSeen(outbox)) {
for (EntityMessage message : db.message().getMessageSeen(outbox))
if (message.identity != null) {
EntityIdentity identity = db.identity().getIdentity(message.identity);
EntityFolder sent = db.folder().getFolderByType(identity.account, EntityFolder.SENT);
if (sent != null) {