[evolution-patches] patch for bug #62065 [calendar]



Hi,
   The calendar items were not being displayed due to a crash in E-D-S,
while trying to access the element "message" from the soap message when
it is NULL. Have attached a patch which solves this.

thanks,
chenthill. 
? 62065.diff
? patch
? groupwise/doc/.gw-soap-methods.xsd.swp
? groupwise/doc/.gw-soap-types.xsd.swp
Index: groupwise/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.60
diff -u -r1.60 ChangeLog
--- groupwise/ChangeLog	13 Aug 2004 15:35:16 -0000	1.60
+++ groupwise/ChangeLog	18 Aug 2004 17:34:34 -0000
@@ -1,3 +1,10 @@
+2004-08-18  Chenthill Palanisamy <pchenthill novell com>
+	
+	Fixes #62065
+	* e-gw-tem.c
+	(e_gw_item_new_from_soap_parameter): Check whether message
+	element has content in it before trying to decode it.
+
 2004-08-13  Chenthill Palanisamy <pchenthill novell com>
 
 	* e-gw-item.h
Index: groupwise/e-gw-item.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.c,v
retrieving revision 1.44
diff -u -r1.44 e-gw-item.c
--- groupwise/e-gw-item.c	13 Aug 2004 15:35:16 -0000	1.44
+++ groupwise/e-gw-item.c	18 Aug 2004 17:34:35 -0000
@@ -1435,8 +1435,11 @@
 			
 			part = soup_soap_parameter_get_first_child_by_name (child, "part");
 			msg = soup_soap_parameter_get_string_value (part);
-			len = atoi (soup_soap_parameter_get_property (part, "length"));
-			item->priv->message = soup_base64_decode  (msg, &len);
+
+			if (msg && soup_soap_parameter_get_property (part, "length")) {
+				len = atoi (soup_soap_parameter_get_property (part, "length"));
+				item->priv->message = soup_base64_decode  (msg, &len);
+			}
 		}
 
 		else if (!g_ascii_strcasecmp (name, "place"))


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