From 8f145c216fd4e2fa19cde27b442f034cd574ac86 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 7 Aug 2012 09:29:21 +0200 Subject: Fix condition when to collapse addresses in To/Cc/Bcc headers --- em-format/e-mail-formatter-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'em-format/e-mail-formatter-utils.c') diff --git a/em-format/e-mail-formatter-utils.c b/em-format/e-mail-formatter-utils.c index db97ee65f8..994b257600 100644 --- a/em-format/e-mail-formatter-utils.c +++ b/em-format/e-mail-formatter-utils.c @@ -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) { -- cgit v1.2.3