[evolution-mapi/gnome-2-32] Bug #630712 - Crash in add_cal_esource



commit 8156f7b20740b76219b2adad6f5315cd0134af0e
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 12 14:49:25 2010 +0200

    Bug #630712 - Crash in add_cal_esource

 .../exchange-mapi-account-listener.c               |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-mapi-account-listener.c b/src/account-setup-eplugin/exchange-mapi-account-listener.c
index 439d5b9..3de6a06 100644
--- a/src/account-setup-eplugin/exchange-mapi-account-listener.c
+++ b/src/account-setup-eplugin/exchange-mapi-account-listener.c
@@ -314,7 +314,8 @@ add_cal_esource (EAccount *account, GSList *folders, ExchangeMAPIFolderType fold
 			ESource *source = temp_list->data;
 
 			if (source && E_IS_SOURCE (source)) {
-				if (strcmp (e_source_get_property (source, "public"), "yes") != 0)
+				if (!e_source_get_property (source, "public") ||
+				    strcmp (e_source_get_property (source, "public"), "yes") != 0)
 					e_source_group_remove_source (group, source);
 			}
 		}
@@ -714,7 +715,8 @@ add_addressbook_sources (EAccount *account, GSList *folders, mapi_id_t trash_fid
 			ESource *source = temp_list->data;
 
 			if (source && E_IS_SOURCE (source)) {
-				if (strcmp(e_source_get_property(source, "public"), "yes") != 0)
+				if (!e_source_get_property (source, "public") ||
+				    strcmp (e_source_get_property (source, "public"), "yes") != 0)
 					e_source_group_remove_source (group, source);
 			}
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]