From 148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 24 Jul 2003 12:21:45 +0000 Subject: check the uid before using it. 2003-07-24 Rodrigo Moya * gui/e-cal-view.c (delete_event): check the uid before using it. svn path=/trunk/; revision=21944 --- calendar/gui/e-cal-view.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/e-cal-view.c') 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); -- cgit