1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Another potential NPE fix.

This commit is contained in:
Andrew Chen 2011-02-04 18:31:01 +00:00 committed by Jesse Vincent
parent f1b4ca6905
commit 1b37fc69f6

View File

@ -1499,7 +1499,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
}
sendMessage();
if (mMessageReference.flag != null)
if (mMessageReference != null && mMessageReference.flag != null)
{
if (K9.DEBUG)
Log.d(K9.LOG_TAG, "Setting referenced message (" + mMessageReference.folderName + ", " + mMessageReference.uid + ") flag to " + mMessageReference.flag);