Fix condition when to collapse addresses in To/Cc/Bcc headers

This commit is contained in:
Milan Crha
2012-08-07 09:29:21 +02:00
parent 54bf0ce5b9
commit 8f145c216f

View File

@ -174,7 +174,7 @@ e_mail_formatter_format_address (EMailFormatter *formatter,
continue;
/* Let us add a '...' if we have more addresses */
if (limit > 0 && (i == limit - 1)) {
if (limit > 0 && i == limit && a != NULL) {
const gchar *id = NULL;
if (strcmp (field, _("To")) == 0) {