You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by su...@apache.org on 2008/07/01 08:02:10 UTC

svn commit: r673002 - /webservices/axis2/trunk/c/axiom/src/om/om_node.c

Author: supun
Date: Mon Jun 30 23:02:09 2008
New Revision: 673002

URL: http://svn.apache.org/viewvc?rev=673002&view=rev
Log:
fixed the issue 1216. 

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_node.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_node.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_node.c?rev=673002&r1=673001&r2=673002&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_node.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_node.c Mon Jun 30 23:02:09 2008
@@ -835,8 +835,11 @@
                     return status;
                 }
             }
-
-            temp_node = axiom_node_get_next_sibling(om_node, env);
+			/* We need to make make sure that om_node is not the root when we take the next sibling */
+			if (count > 1)
+			{
+				temp_node = axiom_node_get_next_sibling(om_node, env);
+			}
             if (temp_node)
             {
                 om_node = temp_node;