[evolution-patches] patch for #41579



I can't replicate the bug, since the calendar file loads correctly both
in local and connector calendars. Also, double clicking on it opens up
the editor correctly, with no crashes.

So, I can't track down why there's a NULL property, thus this fix only
makes sure we don't try to add the NULL property.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libical/ChangeLog,v
retrieving revision 1.139
diff -u -p -r1.139 ChangeLog
--- ChangeLog	7 May 2003 16:49:03 -0000	1.139
+++ ChangeLog	14 May 2003 11:50:36 -0000
@@ -1,3 +1,10 @@
+2003-05-14  Rodrigo Moya <rodrigo ximian com>
+
+	Fixes #41579
+
+	* src/libical/icalcomponent.c (icalcomponent_new_clone): don't add the
+	property if it's NULL.
+
 2003-05-07  Rodrigo Moya <rodrigo ximian com>
 
 	Fixes crash in #41631
Index: src/libical/icalcomponent.c
===================================================================
RCS file: /cvs/gnome/libical/src/libical/icalcomponent.c,v
retrieving revision 1.22
diff -u -p -r1.22 icalcomponent.c
--- src/libical/icalcomponent.c	10 Sep 2001 23:07:51 -0000	1.22
+++ src/libical/icalcomponent.c	14 May 2003 11:50:37 -0000
@@ -193,7 +193,8 @@ icalcomponent* icalcomponent_new_clone(i
 	 itr = pvl_next(itr))
     {	
 	p = (icalproperty*)pvl_data(itr);
-	icalcomponent_add_property(new,icalproperty_new_clone(p));
+	if (p != 0)
+		icalcomponent_add_property(new,icalproperty_new_clone(p));
     }
    
    


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