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/05/13 06:51:04 UTC
svn commit: r655734 - /webservices/axis2/trunk/c/axiom/src/om/om_node.c
Author: supun
Date: Mon May 12 21:51:03 2008
New Revision: 655734
URL: http://svn.apache.org/viewvc?rev=655734&view=rev
Log:
Fixed the issue AXIS2C-1132
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=655734&r1=655733&r2=655734&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_node.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_node.c Mon May 12 21:51:03 2008
@@ -365,6 +365,13 @@
AXIS2_PARAM_CHECK(env->error, node_to_insert, AXIS2_FAILURE);
+ if (!om_node->parent)
+ {
+ /* We shouldn't add a sibling becuase this node doesn't has a parent.
+ * This can be the root node of the tree*/
+ return AXIS2_FAILURE;
+ }
+
node_to_insert->parent = om_node->parent;
node_to_insert->prev_sibling = om_node;
@@ -393,6 +400,13 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, node_to_insert, AXIS2_FAILURE);
+ if (!om_node->parent)
+ {
+ /* We shouldn't add a sibling becuase this node doesn't has a parent.
+ * This can be the root node of the tree*/
+ return AXIS2_FAILURE;
+ }
+
node_to_insert->parent = om_node->parent;
node_to_insert->prev_sibling = om_node->prev_sibling;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org