You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/11/22 05:44:12 UTC

svn commit: r478030 - /webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c

Author: nandika
Date: Tue Nov 21 20:44:11 2006
New Revision: 478030

URL: http://svn.apache.org/viewvc?view=rev&rev=478030
Log:
bug fixed

Modified:
    webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c?view=diff&rev=478030&r1=478029&r2=478030
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_builder.c Tue Nov 21 20:44:11 2006
@@ -3839,7 +3839,7 @@
     ele_iter = axiom_util_get_child_elements(cnt_ele, env, content);
 
     attr_value = AXIOM_ELEMENT_GET_ATTRIBUTE_VALUE_BY_NAME(cnt_ele, env, "source");
-    if (!ele_iter && !AXIOM_CHILD_ELEMENT_ITERATOR_HAS_NEXT(ele_iter, env))
+    if (!attr_value &&(!ele_iter || !AXIOM_CHILD_ELEMENT_ITERATOR_HAS_NEXT(ele_iter, env)))
         return NULL;
 
     XML_SCHEMA_APP_INFO_SET_SOURCE(app_info, env, attr_value);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org