From a5d5e573053a7b6be016dae7d77acd8f781ccc61 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 12 Aug 2024 17:04:01 +0200 Subject: [PATCH] Revert "Prevent NPE" This reverts commit 0bebbc1c0f41739decda0676c8597e7a586460f0. --- app/src/main/java/com/sun/mail/imap/IMAPFolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/sun/mail/imap/IMAPFolder.java b/app/src/main/java/com/sun/mail/imap/IMAPFolder.java index ca6495c665..59c3963641 100644 --- a/app/src/main/java/com/sun/mail/imap/IMAPFolder.java +++ b/app/src/main/java/com/sun/mail/imap/IMAPFolder.java @@ -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 != null && m.getMessageNumber() > 0) + if (m.getMessageNumber() > 0) messageCache.expungeMessage(m.getMessageNumber()); } if (doExpungeNotification && hasMessageCountListener) {