aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-06-17 22:19:17 +0800
committerMilan Crha <mcrha@redhat.com>2014-06-17 22:19:17 +0800
commit45271d47fca8a4ba6927cc428ab41c637da821b4 (patch)
tree232bf04e58c0a3b3bf486574f2c3e0496b426762 /calendar
parent17cef3b8c8862f0659f287763c94ed6a6077a00c (diff)
downloadgsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar.gz
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar.bz2
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar.lz
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar.xz
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.tar.zst
gsoc2013-evolution-45271d47fca8a4ba6927cc428ab41c637da821b4.zip
Bug 731590 - Crash on calendar Copy
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/dialogs/copy-source-dialog.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c
index c948d0ccfd..c7a7b4df53 100644
--- a/calendar/gui/dialogs/copy-source-dialog.c
+++ b/calendar/gui/dialogs/copy-source-dialog.c
@@ -142,13 +142,15 @@ dest_source_connected_cb (GObject *source_object,
ftd.dest_client = csdd->dest_client;
for (l = obj_list; l != NULL; l = l->next) {
+ icalcomp = NULL;
+
/* FIXME: process recurrences */
/* FIXME: process errors */
- e_cal_client_get_object_sync (
+ if (e_cal_client_get_object_sync (
csdd->dest_client,
icalcomponent_get_uid (l->data),
- NULL, &icalcomp, NULL, NULL);
- if (icalcomp != NULL) {
+ NULL, &icalcomp, NULL, NULL) &&
+ icalcomp != NULL) {
e_cal_client_modify_object_sync (
csdd->dest_client, l->data,
CALOBJ_MOD_ALL, NULL, NULL);