Prevent NPE

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

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

Loading…
Cancel
Save