From 1b37fc69f65768bc11402202bebebaaca2f1520f Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Fri, 4 Feb 2011 18:31:01 +0000 Subject: [PATCH] Another potential NPE fix. --- src/com/fsck/k9/activity/MessageCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index cec4735b2..819517af9 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -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);