aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-09-28 21:25:12 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-09-28 21:25:12 +0800
commitebef4e5ed565ae236aed1e644bd62fb475e928f8 (patch)
treeaca5df485c16abd1ca0b090b8825a771ee79480f /addressbook/gui/widgets
parentaab7424773357dbe7f60ba18754fa1763b7ee993 (diff)
downloadgsoc2013-evolution-ebef4e5ed565ae236aed1e644bd62fb475e928f8.tar.gz
gsoc2013-evolution-ebef4e5ed565ae236aed1e644bd62fb475e928f8.tar.zst
gsoc2013-evolution-ebef4e5ed565ae236aed1e644bd62fb475e928f8.zip
Fix for the crash when adding duplicate contacts without e-mail ids by
dragging them into contact list editor. Patch submitted by "Devashish <sdevashish@novell.com>" svn path=/trunk/; revision=30411
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index a925ce72d6..48725d6fcc 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -545,10 +545,13 @@ eab_contact_display_render_compact (EABContactDisplay *display, EContact *contac
gtk_html_stream_printf (html_stream, "<b>%s:</b>&nbsp;<td>", _("List Members"));
email_list = e_contact_get (contact, E_CONTACT_EMAIL);
+
for (l = email_list; l; l = l->next) {
- char *html = e_text_to_html (l->data, 0);
- gtk_html_stream_printf (html_stream, "%s, ", html);
- g_free (html);
+ if (l->data) {
+ char *html = e_text_to_html (l->data, 0);
+ gtk_html_stream_printf (html_stream, "%s, ", html);
+ g_free (html);
+ }
}
gtk_html_stream_printf (html_stream, "</td></tr></table>");
}