1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Avoid NullPointerException when trying to move a message before it is fully loaded (in message view).

Fixes issue 1957
This commit is contained in:
cketti 2010-07-11 14:57:00 +00:00
parent 28d3967d0f
commit 0c7d4825cc

View File

@ -1195,7 +1195,8 @@ public class MessageView extends K9Activity implements OnClickListener
private void onMove()
{
if (MessagingController.getInstance(getApplication()).isMoveCapable(mAccount) == false)
if ((MessagingController.getInstance(getApplication()).isMoveCapable(mAccount) == false)
|| (mMessage == null))
{
return;
}
@ -1215,7 +1216,8 @@ public class MessageView extends K9Activity implements OnClickListener
private void onCopy()
{
if (MessagingController.getInstance(getApplication()).isCopyCapable(mAccount) == false)
if ((MessagingController.getInstance(getApplication()).isCopyCapable(mAccount) == false)
|| (mMessage == null))
{
return;
}