[evolution-ews] Bug 661537 - Crash in e_book_backend_sqlitedb_get_is_populated at e-book-backend-sqlitedb.c:1726



commit 5f3142a830d103f5ac989254f25b1f0a3513f889
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Nov 22 13:53:58 2011 +0530

    Bug 661537 - Crash in e_book_backend_sqlitedb_get_is_populated at e-book-backend-sqlitedb.c:1726

 src/addressbook/e-book-backend-ews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 7ff1ea3..9edc005 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2076,7 +2076,7 @@ e_book_backend_ews_start_book_view (EBookBackend  *backend,
 	e_data_book_view_notify_progress (book_view, -1, _("Searching..."));
 
 	if (!priv->is_online) {
-		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]