You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/12/07 10:50:27 UTC
svn commit: r483398 - in /webservices/axis2/trunk/c/axiom:
src/parser/libxml2/libxml2_writer_wrapper.c test/om/test_om.c
Author: samisa
Date: Thu Dec 7 01:50:25 2006
New Revision: 483398
URL: http://svn.apache.org/viewvc?view=rev&rev=483398
Log:
Fixing value NULL case. AXIS2C-238
Modified:
webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c
webservices/axis2/trunk/c/axiom/test/om/test_om.c
Modified: webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c?view=diff&rev=483398&r1=483397&r2=483398
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c Thu Dec 7 01:50:25 2006
@@ -961,7 +961,8 @@
int status = 0;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
+ if (!value)
+ value = "";
writer_impl = AXIS2_INTF_TO_IMPL(writer);
status = xmlTextWriterWriteAttribute(writer_impl->xml_writer,
@@ -989,9 +990,11 @@
axis2_bool_t exists = AXIS2_FALSE;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
+ if (!value)
+ value = "";
+
writer_impl = AXIS2_INTF_TO_IMPL(writer);
exists = axis2_libxml2_writer_wrapper_is_namespace_declared(writer, env, namespace_uri);
@@ -1036,10 +1039,12 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, localname, AXIS2_FAILURE);
- AXIS2_PARAM_CHECK(env->error, value, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, namespace_uri, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, prefix, AXIS2_FAILURE);
+ if (!value)
+ value = "";
+
writer_impl = AXIS2_INTF_TO_IMPL(writer);
key = create_key_from_uri_prefix(env, namespace_uri, prefix);
Modified: webservices/axis2/trunk/c/axiom/test/om/test_om.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/test/om/test_om.c?view=diff&rev=483398&r1=483397&r2=483398
==============================================================================
--- webservices/axis2/trunk/c/axiom/test/om/test_om.c (original)
+++ webservices/axis2/trunk/c/axiom/test/om/test_om.c Thu Dec 7 01:50:25 2006
@@ -226,6 +226,9 @@
AXIOM_ELEMENT_DECLARE_NAMESPACE(ele1, environment, node1, ns2);
ele2 = axiom_element_create(environment, node1, "title", ns1, &node2);
+ attr1 = axiom_attribute_create(environment, "title22", NULL, NULL);
+
+ AXIOM_ELEMENT_ADD_ATTRIBUTE(ele2, environment, attr1, node2);
text1 = axiom_text_create(environment, node2, "Axis2/C OM HOWTO", &node3);
@@ -291,7 +294,6 @@
test_om_serialize();
axis2_env_free(environment);
- axis2_allocator_free(allocator);
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org