1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

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

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());