aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-24 20:21:45 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-24 20:21:45 +0800
commit148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec (patch)
tree960efe77122892d7c77639680108f230ce1af4c0 /calendar/gui/e-calendar-view.c
parent1f382b36fae7bbe91d39c52d7315865b1771d462 (diff)
downloadgsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.gz
gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.zst
gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.zip
check the uid before using it.
2003-07-24 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-view.c (delete_event): check the uid before using it. svn path=/trunk/; revision=21944
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 6c352270af..84dab61a86 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -593,6 +593,8 @@ delete_event (ECalView *cal_view, CalComponent *comp)
cal_view->priv->client, NULL);
cal_component_get_uid (comp, &uid);
+ if (!uid || !*uid)
+ return;
delete_error_dialog (
cal_client_remove_object (cal_view->priv->client, uid), CAL_COMPONENT_EVENT);