From 959c0e424c5625154dfe778c8d8d851df1524e68 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 25 Jul 2001 22:56:56 +0000 Subject: check type of component before actually pasting. Deal with VCALENDAR 2001-07-25 Rodrigo Moya * gui/e-day-view.c (selection_received_cb): check type of component before actually pasting. Deal with VCALENDAR components also (fixes bug #5140) * gui/e-week-view.c (selection_received_cb): ditto * cal-client/cal-client.c (cal_client_update_object): check the return value from cal_component_get_as_string and don't call GNOME_Evolution_Calendar_Cal_updateObjects if NULL svn path=/trunk/; revision=11418 --- calendar/cal-client/cal-client.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/cal-client') diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index 4d2ba2805b..601686b3bc 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1867,6 +1867,8 @@ cal_client_update_object (CalClient *client, CalComponent *comp) cal_component_commit_sequence (comp); obj_string = cal_client_get_component_as_string (client, comp); + if (obj_string == NULL) + return FALSE; CORBA_exception_init (&ev); GNOME_Evolution_Calendar_Cal_updateObjects (priv->cal, obj_string, &ev); -- cgit v1.2.3