From fef40cfdca7f9b228252f9ab9fafaee5bc7695ee Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Sun, 29 Jul 2007 18:46:40 +0000 Subject: Fixes #453860. svn path=/trunk/; revision=33891 --- calendar/gui/e-select-names-editable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-select-names-editable.c b/calendar/gui/e-select-names-editable.c index bc4a754a8c..c575ed44b7 100644 --- a/calendar/gui/e-select-names-editable.c +++ b/calendar/gui/e-select-names-editable.c @@ -151,7 +151,8 @@ e_select_names_editable_get_emails (ESelectNamesEditable *esne) } else { /* check if the contact is contact list, it does not contain all the email ids */ /* we dont expand it currently, TODO do we need to expand it by getting it from addressbook*/ - if (e_contact_get (e_destination_get_contact (destination), E_CONTACT_IS_LIST)) { + if (e_destination_get_contact (destination) && + e_contact_get (e_destination_get_contact (destination), E_CONTACT_IS_LIST)) { /* If its a contact_list which is not expanded, it wont have a email id, so we can use the name as the email id */ -- cgit