mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-11 02:12:27 -05:00
Protect against a NullPointerException that happened once, but should
never have happened.
This commit is contained in:
parent
0a4577c930
commit
9d2a4c3af9
@ -3551,8 +3551,11 @@ public class MessagingController implements Runnable
|
|||||||
localFolder = localStore.getFolder(account.getDraftsFolderName());
|
localFolder = localStore.getFolder(account.getDraftsFolderName());
|
||||||
localFolder.open(OpenMode.READ_WRITE);
|
localFolder.open(OpenMode.READ_WRITE);
|
||||||
Message message = localFolder.getMessage(uid);
|
Message message = localFolder.getMessage(uid);
|
||||||
|
if (message != null)
|
||||||
|
{
|
||||||
deleteMessages(new Message[] { message }, null);
|
deleteMessages(new Message[] { message }, null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (MessagingException me)
|
catch (MessagingException me)
|
||||||
{
|
{
|
||||||
addErrorMessage(account, me);
|
addErrorMessage(account, me);
|
||||||
|
Loading…
Reference in New Issue
Block a user