Prevent NPE

pull/215/head
M66B 3 months ago
parent 9ea5094ff8
commit f3cba25195

@ -3640,6 +3640,7 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
String uids = ir.readAtom();
eu.faircode.email.Log.w("VANISHED earlier=" + (earlier != null) + " uids=" + uids);
UIDSet[] uidset = UIDSet.parseUIDSets(uids);
if (uidset != null) {
List<Message> msgs = new ArrayList<>();
for (long uid : UIDSet.toArray(uidset)) {
Message m = uidTable.get(uid);
@ -3652,6 +3653,7 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
if (!msgs.isEmpty() &&
doExpungeNotification && hasMessageCountListener)
notifyMessageRemovedListeners(true, msgs.toArray(new Message[0]));
}
/*
String[] s = ir.readAtomStringList();
if (s == null) { // no (EARLIER)

Loading…
Cancel
Save