Fixes #334807
authorChenthill Palanisamy <pchen@src.gnome.org>
Thu, 23 Mar 2006 09:16:49 +0000 (09:16 +0000)
committerChenthill Palanisamy <pchen@src.gnome.org>
Thu, 23 Mar 2006 09:16:49 +0000 (09:16 +0000)
ChangeLog
libedataserver/e-source-group.c

index e3bc372..33a7ecb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-23  Chenthill Palanisamy  <pchenthill@novell.com>
+       
+       Fixes #334807
+       * libedataserver/e-source-group.c: Check if the 
+       object is created before accessing it.
+       
 2006-03-22  Tommi Vainikainen  <thv@iki.fi>
 
        * configure.in (ALL_LINGUAS): Added Dzongkha (dz).
index 6322aca..dae08ce 100644 (file)
@@ -216,6 +216,10 @@ e_source_group_new_from_xmldoc (xmlDocPtr doc)
                goto done;
 
        new = g_object_new (e_source_group_get_type (), NULL);
+
+       if (!new)
+               goto done;
+
        new->priv->uid = g_strdup (uid);
 
        e_source_group_set_name (new, name);