1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Fixed NullPointerException

This commit is contained in:
cketti 2012-02-13 00:56:34 +01:00
parent e766f75da2
commit 53604be914

View File

@ -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);