Fix a crash editing a draft that refers to a message with no message-id.

This commit is contained in:
Michael James Gratton 2018-04-17 13:28:02 +10:00
parent 339b2b6153
commit a37d8605c2

View file

@ -674,7 +674,8 @@ public class ComposerWidget : Gtk.EventBox {
Gee.Set<Geary.Email> emails = email_map.get_keys();
Geary.Email? email = null;
foreach (Geary.Email candidate in emails) {
if (candidate.message_id.equal_to(mid)) {
if (candidate.message_id != null &&
mid.equal_to(candidate.message_id)) {
email = candidate;
break;
}