Fixed adding messages in some cases

This commit is contained in:
M66B 2020-07-10 08:45:04 +02:00
parent 4e9d800eb4
commit 9bb0fa729c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}