diff options
author | shankar | 2010-03-23 07:56:16 +0000 |
---|---|---|
committer | shankar | 2010-03-23 07:56:16 +0000 |
commit | d45f051fd09f8f75e33dc7b8e57f91b4b68201d5 (patch) | |
tree | 0cd4cf619af0e3b6820eac05d5c490616bdd7078 /axiom/src/om/om_stax_builder.c | |
parent | a75ede936bab7d60c912fbcdda24d901ae50aba6 (diff) | |
download | axis2c-d45f051fd09f8f75e33dc7b8e57f91b4b68201d5.tar.gz axis2c-d45f051fd09f8f75e33dc7b8e57f91b4b68201d5.tar.bz2 |
refactor
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@926489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'axiom/src/om/om_stax_builder.c')
-rw-r--r-- | axiom/src/om/om_stax_builder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/axiom/src/om/om_stax_builder.c b/axiom/src/om/om_stax_builder.c index 77a8c3e..892a46c 100644 --- a/axiom/src/om/om_stax_builder.c +++ b/axiom/src/om/om_stax_builder.c @@ -488,6 +488,11 @@ axiom_stax_builder_create_om_element( { /* since last node is null, this should be the root node */ om_ele = axiom_element_create_str(env, NULL, temp_localname_str, NULL, &element_node); + if(!element_node) + { + AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Cannot create element"); + return NULL; + } om_builder->root_node = element_node; if(om_builder->document) { |