Prevent NPE

pull/215/head
M66B 3 months ago
parent b11ceea73b
commit 0bebbc1c0f

@ -3644,7 +3644,7 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
long[] luid = UIDSet.toArray(uidset);
Message[] msgs = createMessagesForUIDs(luid);
for (Message m : msgs) {
if (m.getMessageNumber() > 0)
if (m != null && m.getMessageNumber() > 0)
messageCache.expungeMessage(m.getMessageNumber());
}
if (doExpungeNotification && hasMessageCountListener) {

Loading…
Cancel
Save