[evolution-patches] patch for a crash in EDS [calendar]



Hi,
   Have attached the patch with the mail.

thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.417
diff -u -p -r1.417 ChangeLog
--- ChangeLog	9 Feb 2005 00:29:25 -0000	1.417
+++ ChangeLog	9 Feb 2005 10:17:41 -0000
@@ -1,3 +1,10 @@
+2005-02-09  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes a crash
+	* backends/groupwise/e-cal-backend-groupwise-utils.c:
+	(e_gw_item_to_cal_component): Check whether the creation 
+	date is present, before converting it to icaltimetype.
+
 2005-02-09  Rodrigo Moya <rodrigo novell com>
 
 	* libecal/e-cal.c (open_calendar): use e_return_error_if_fail instead
Index: backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c,v
retrieving revision 1.50
diff -u -p -r1.50 e-cal-backend-groupwise-utils.c
--- backends/groupwise/e-cal-backend-groupwise-utils.c	4 Feb 2005 12:02:53 -0000	1.50
+++ backends/groupwise/e-cal-backend-groupwise-utils.c	9 Feb 2005 10:17:44 -0000
@@ -799,18 +799,20 @@ e_gw_item_to_cal_component (EGwItem *ite
 
 	/* creation date */
 	t = e_gw_item_get_creation_date (item);
-	itt_utc = icaltime_from_string (t);
-	if (!icaltime_get_timezone (itt_utc))
-		icaltime_set_timezone (&itt_utc, icaltimezone_get_utc_timezone());
-	if (default_zone) {
-		itt = icaltime_convert_to_zone (itt_utc, default_zone); 
-		icaltime_set_timezone (&itt, default_zone);
-		e_cal_component_set_created (comp, &itt);
-		e_cal_component_set_dtstamp (comp, &itt);
-		
-	} else {
-		e_cal_component_set_created (comp, &itt_utc);
-		e_cal_component_set_dtstamp (comp, &itt_utc);
+	if (t) {
+		itt_utc = icaltime_from_string (t);
+		if (!icaltime_get_timezone (itt_utc))
+			icaltime_set_timezone (&itt_utc, icaltimezone_get_utc_timezone());
+		if (default_zone) {
+			itt = icaltime_convert_to_zone (itt_utc, default_zone); 
+			icaltime_set_timezone (&itt, default_zone);
+			e_cal_component_set_created (comp, &itt);
+			e_cal_component_set_dtstamp (comp, &itt);
+
+		} else {
+			e_cal_component_set_created (comp, &itt_utc);
+			e_cal_component_set_dtstamp (comp, &itt_utc);
+		}
 	}
 	g_free (t);
 	


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]