Fix for Bug #345776
authorDevashish Sharma <dsharma@src.gnome.org>
Mon, 31 Jul 2006 06:37:04 +0000 (06:37 +0000)
committerDevashish Sharma <dsharma@src.gnome.org>
Mon, 31 Jul 2006 06:37:04 +0000 (06:37 +0000)
libedataserver/e-source-group.c

index dae08ce..d076000 100644 (file)
@@ -416,8 +416,12 @@ e_source_group_uid_from_xmldoc (xmlDocPtr doc)
        xmlNodePtr root = doc->children;
        xmlChar *name;
        char *retval;
-
-       if (strcmp (root->name, "group") != 0)
+       
+       if (root && root->name) {
+               if (strcmp (root->name, "group") != 0)
+                       return NULL;
+       }
+       else 
                return NULL;
 
        name = xmlGetProp (root, "uid");