mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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:
parent
28d3967d0f
commit
0c7d4825cc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user