[evolution-ews] Bug #708309 - Crash accessing GAL not marked for offline
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #708309 - Crash accessing GAL not marked for offline
- Date: Mon, 23 Sep 2013 15:49:00 +0000 (UTC)
commit c8d49fea5fd75ce251fe0919d70e5f861a127f42
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 23 17:48:24 2013 +0200
Bug #708309 - Crash accessing GAL not marked for offline
src/addressbook/e-book-backend-ews.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index ca54ee9..993cb1f 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2472,6 +2472,8 @@ ebews_start_gal_sync (gpointer data)
ews_settings = book_backend_ews_get_collection_settings (cbews);
priv = cbews->priv;
+ g_return_val_if_fail (priv->summary != NULL, FALSE);
+
cancellable = g_object_ref (priv->cancellable);
oab_cnc = e_ews_connection_new (priv->oab_url, ews_settings);
@@ -3142,11 +3144,11 @@ delta_thread (gpointer data)
g_mutex_unlock (&priv->dlock->mutex);
while (TRUE) {
- gboolean succeeded;
+ gboolean succeeded = TRUE;
if (!priv->is_gal)
succeeded = ebews_start_sync (ebews);
- else
+ else if (priv->summary)
succeeded = ebews_start_gal_sync (ebews);
g_mutex_lock (&priv->dlock->mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]