aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datetime-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 1a37fde..f0c45c0 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -734,6 +734,12 @@ update_appointment_menu_items (gpointer unused)
ESource *source = E_SOURCE (s->data);
ECalClient *ecal = e_cal_client_new(source, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, &gerror);
+ if (!ecal) {
+ g_debug ("Cannot create ecal client: %s", gerror->message);
+ g_clear_error (&gerror);
+ continue;
+ }
+
icaltimezone* current_zone = icaltimezone_get_builtin_timezone(current_timezone);
if (!current_zone) {
// current_timezone may be a TZID?