aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 83f6abf2d2..5823ad7cbe 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -188,14 +188,20 @@ find_server (EItipControl *itip, ECalComponent *comp)
ESource *source;
ECal *ecal;
icalcomponent *icalcomp;
+ GError *error = NULL;
source = m->data;
ecal = start_calendar_server (itip, source, priv->type);
- if (ecal && e_cal_get_object (ecal, uid, NULL, &icalcomp, NULL)) {
- icalcomponent_free (icalcomp);
-
- return ecal;
+ if (ecal && e_cal_get_object (ecal, uid, NULL, &icalcomp, &error)) {
+ if (error && error->code == E_CALENDAR_STATUS_OK) {
+ icalcomponent_free (icalcomp);
+ g_error_free (error);
+
+ return ecal;
+ }
+
+ g_clear_error (&error);
}
}
}