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



commit 7b48ceb491b3c3f5f6d8eb25096cd2a9bc6a36b5
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 f45a065..c5f9736 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2074,7 +2074,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]