[evolution-ews/gnome-3-0] Fix crash in addressbook completion when no offline GAL cache



commit 11afc1651021fc5305f0aba02972240198fd2ac8
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Oct 19 22:19:53 2011 +0100

    Fix crash in addressbook completion when no offline GAL cache

 src/addressbook/e-book-backend-ews.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 7b38908..aa9ea1b 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2083,7 +2083,8 @@ e_book_backend_ews_start_book_view (EBookBackend  *backend,
 
 		ebews_start_refreshing (ebews);
 
-		if (e_book_backend_sqlitedb_get_is_populated (priv->ebsdb, priv->folder_id, NULL)) {
+		if (priv->ebsdb &&
+		    e_book_backend_sqlitedb_get_is_populated (priv->ebsdb, priv->folder_id, NULL)) {
 			fetch_from_offline (ebews, book_view, query, error);
 			return;
 		}



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