summaryrefslogtreecommitdiffstats
path: root/axiom/src/om/om_document.c
diff options
context:
space:
mode:
authorGravatar nandika2010-06-29 18:42:28 +0000
committerGravatar nandika2010-06-29 18:42:28 +0000
commit5bb69d945832ea6f40c7efaca4dfd7f6b0731846 (patch)
treef6c2fad11c1d8c1241ea4ef6d92729b27849a569 /axiom/src/om/om_document.c
parent81c283ae333c76203aa069f2121cbda5e32d4e7a (diff)
downloadaxis2c-5bb69d945832ea6f40c7efaca4dfd7f6b0731846.tar.gz
axis2c-5bb69d945832ea6f40c7efaca4dfd7f6b0731846.tar.bz2
bug in processing empty element fixed
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@959070 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'axiom/src/om/om_document.c')
-rw-r--r--axiom/src/om/om_document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/axiom/src/om/om_document.c b/axiom/src/om/om_document.c
index 0d4d276..47301a8 100644
--- a/axiom/src/om/om_document.c
+++ b/axiom/src/om/om_document.c
@@ -102,7 +102,7 @@ axiom_document_get_root_element(
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Unable to get root node");
return NULL;
}
- }while(token != AXIOM_XML_READER_START_ELEMENT);
+ }while(token != AXIOM_XML_READER_START_ELEMENT && !document->root_element);
}
return document->root_element;