Fix for NPE when changing the identity

Fixes issue 2506. Patch from jca02266
This commit is contained in:
Jesse Vincent 2010-10-23 15:26:50 +00:00
parent c283224999
commit fb059a8138
1 changed files with 4 additions and 1 deletions

View File

@ -2296,7 +2296,10 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
* We're saving a previously saved draft, so update the new message's uid
* to the old message's uid.
*/
message.setUid(mMessageReference.uid);
if (mMessageReference != null)
{
message.setUid(mMessageReference.uid);
}
}
String k9identity = Utility.base64Encode("" + mMessageContentView.getText().toString().length());