[evolution-mapi] Bug #624013 - Free/Busy fetch in offline claims a runtime error
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #624013 - Free/Busy fetch in offline claims a runtime error
- Date: Mon, 12 Jul 2010 16:24:20 +0000 (UTC)
commit 18c3c577236ac4e2f0dd53795e370c97614101b1
Author: Milan Crha <mcrha redhat com>
Date: Mon Jul 12 18:23:41 2010 +0200
Bug #624013 - Free/Busy fetch in offline claims a runtime error
src/calendar/e-cal-backend-mapi.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index 924656c..4f07a0d 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -2462,6 +2462,11 @@ e_cal_backend_mapi_get_free_busy (ECalBackendSync *backend, EDataCal *cal,
cbmapi = E_CAL_BACKEND_MAPI (backend);
priv = cbmapi->priv;
+ if (!priv->conn) {
+ g_propagate_error (perror, EDC_ERROR (RepositoryOffline));
+ return;
+ }
+
if (!exchange_mapi_cal_utils_get_free_busy_data (priv->conn, users, start, end, freebusy, &mapi_error)) {
mapi_error_to_edc_error (perror, mapi_error, OtherError, _("Failed to get Free/Busy data"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]