Prevent putting body child node to nodes_to_encrypt list, when there is no child elements inside the body node.
diff --git a/src/util/rampart_context.c b/src/util/rampart_context.c
index eb82edd..52725bb 100644
--- a/src/util/rampart_context.c
+++ b/src/util/rampart_context.c
@@ -2259,7 +2259,10 @@
}
else
{
- axutil_array_list_add(nodes_to_sign_or_encrypt, env, body_child_node);
+ if(body_child_node)
+ {
+ axutil_array_list_add(nodes_to_sign_or_encrypt, env, body_child_node);
+ }
}
return AXIS2_SUCCESS;