diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-24 20:21:45 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-24 20:21:45 +0800 |
commit | 148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec (patch) | |
tree | 960efe77122892d7c77639680108f230ce1af4c0 /calendar/gui | |
parent | 1f382b36fae7bbe91d39c52d7315865b1771d462 (diff) | |
download | gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.gz gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.bz2 gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.lz gsoc2013-evolution-148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec.tar.xz 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')
-rw-r--r-- | calendar/gui/e-cal-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/e-calendar-view.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-view.c b/calendar/gui/e-cal-view.c index 6c352270af..84dab61a86 100644 --- a/calendar/gui/e-cal-view.c +++ b/calendar/gui/e-cal-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); 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); |