Fixed adding messages in some cases

pull/183/head
M66B 4 years ago
parent 4e9d800eb4
commit 9bb0fa729c

@ -860,7 +860,7 @@ class Core {
if (istore.hasCapability("UIDPLUS")) {
// https://tools.ietf.org/html/rfc4315
AppendUID[] uids = ifolder.appendUIDMessages(new Message[]{imessage});
if (uids != null && uids.length > 0 && uids[0].uid > 0) {
if (uids != null && uids.length > 0 && uids[0] != null && uids[0].uid > 0) {
newuid = uids[0].uid;
Log.i(folder.name + " appended uid=" + newuid);
}

Loading…
Cancel
Save