1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -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,7 +3551,10 @@ public class MessagingController implements Runnable
localFolder = localStore.getFolder(account.getDraftsFolderName());
localFolder.open(OpenMode.READ_WRITE);
Message message = localFolder.getMessage(uid);
deleteMessages(new Message[] { message }, null);
if (message != null)
{
deleteMessages(new Message[] { message }, null);
}
}
catch (MessagingException me)
{