Fix crash when replying to email with null from address.
This commit is contained in:
parent
15e6877823
commit
557a9e75b7
1 changed files with 2 additions and 2 deletions
|
|
@ -70,9 +70,9 @@ private void remove_address(Gee.List<Geary.RFC822.MailboxAddress> addresses,
|
|||
}
|
||||
|
||||
private bool email_is_from_sender(Geary.Email email, Gee.List<RFC822.MailboxAddress>? sender_addresses) {
|
||||
if (sender_addresses == null)
|
||||
if (sender_addresses == null || email.from == null)
|
||||
return false;
|
||||
|
||||
|
||||
return Geary.traverse<RFC822.MailboxAddress>(sender_addresses)
|
||||
.any(a => email.from.get_all().contains(a));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue