mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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