summaryrefslogtreecommitdiffstats
path: root/axiom/src/om/om_document.c
diff options
context:
space:
mode:
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;