[evolution-data-server] Bug #569329 - [groupwise] EDS crashed when checking contacts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #569329 - [groupwise] EDS crashed when checking contacts
- Date: Wed, 1 Sep 2010 14:48:49 +0000 (UTC)
commit 2130b68b897bdff2abc93d9bbf5a31e9e4ad17d5
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 1 16:48:01 2010 +0200
Bug #569329 - [groupwise] EDS crashed when checking contacts
.../backends/groupwise/e-book-backend-groupwise.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/backends/groupwise/e-book-backend-groupwise.c b/addressbook/backends/groupwise/e-book-backend-groupwise.c
index f06c481..0ef6d68 100644
--- a/addressbook/backends/groupwise/e-book-backend-groupwise.c
+++ b/addressbook/backends/groupwise/e-book-backend-groupwise.c
@@ -3055,11 +3055,14 @@ update_address_book_deltas (EBookBackendGroupwise *ebgw)
if (enable_debug)
printf ("Contact List modified fetching the members of the contact list\n");
+ item = NULL;
status = e_gw_connection_get_item (ebgw->priv->cnc, ebgw->priv->container_id, e_contact_get (contact, E_CONTACT_UID), "name email default members", &item);
- g_object_unref (contact);
- contact = e_contact_new ();
- fill_contact_from_gw_item (contact, item, ebgw->priv->categories_by_id);
- g_object_unref (item);
+ if (status == E_GW_CONNECTION_STATUS_OK && item) {
+ g_object_unref (contact);
+ contact = e_contact_new ();
+ fill_contact_from_gw_item (contact, item, ebgw->priv->categories_by_id);
+ g_object_unref (item);
+ }
}
if (enable_debug)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]