mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fixed NullPointerException
This commit is contained in:
parent
e766f75da2
commit
53604be914
@ -2622,8 +2622,9 @@ public class MessagingController implements Runnable {
|
||||
localFolder.open(OpenMode.READ_WRITE);
|
||||
|
||||
Message message = localFolder.getMessage(uid);
|
||||
setFlag(account, folderName, new Message[] { message }, flag, newState);
|
||||
|
||||
if (message != null) {
|
||||
setFlag(account, folderName, new Message[] { message }, flag, newState);
|
||||
}
|
||||
} catch (MessagingException me) {
|
||||
addErrorMessage(account, null, me);
|
||||
throw new RuntimeException(me);
|
||||
|
Loading…
Reference in New Issue
Block a user