Prevent crash

pull/160/head
M66B 5 years ago
parent dd9d50ff13
commit c92878d6b9

@ -1874,8 +1874,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
message.account, message.thread, threading ? null : id, message.folder); message.account, message.thread, threading ? null : id, message.folder);
for (EntityMessage threaded : messages) { for (EntityMessage threaded : messages) {
EntityFolder target = db.folder().getFolderByType(message.account, type); EntityFolder target = db.folder().getFolderByType(message.account, type);
EntityAccount account = db.account().getAccount(target.account); if (target != null) {
result.add(new MessageTarget(threaded, account, target)); EntityAccount account = db.account().getAccount(target.account);
result.add(new MessageTarget(threaded, account, target));
}
} }
} }
} }

Loading…
Cancel
Save