1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 21:22:26 -05:00

Protect against a NullPointerException that happened once, but should

never have happened.
This commit is contained in:
Daniel Applebaum 2010-04-06 02:35:42 +00:00
parent 0a4577c930
commit 9d2a4c3af9

View File

@ -3551,8 +3551,11 @@ public class MessagingController implements Runnable
localFolder = localStore.getFolder(account.getDraftsFolderName());
localFolder.open(OpenMode.READ_WRITE);
Message message = localFolder.getMessage(uid);
if (message != null)
{
deleteMessages(new Message[] { message }, null);
}
}
catch (MessagingException me)
{
addErrorMessage(account, me);