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/06 15:57:53 UTC
svn commit: r483101 -
/webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c
Author: samisa
Date: Wed Dec 6 06:57:52 2006
New Revision: 483101
URL: http://svn.apache.org/viewvc?view=rev&rev=483101
Log:
Fixed the seg fault in case there are errors in service.xml.
AXIS2C-358
Modified:
webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c
Modified: webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c?view=diff&rev=483101&r1=483100&r2=483101
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/arch_reader.c Wed Dec 6 06:57:52 2006
@@ -371,10 +371,19 @@
{
return AXIS2_FAILURE;
}
+
svcs = AXIS2_DESC_BUILDER_BUILD_OM(arch_reader_impl->desc_builder, env);
- svcs_element = AXIOM_NODE_GET_DATA_ELEMENT(svcs, env);
- root_element_name = AXIOM_ELEMENT_GET_LOCALNAME(svcs_element, env);
- if (0 == AXIS2_STRCMP(AXIS2_SVC_ELEMENT, root_element_name))
+
+ if (svcs)
+ {
+ svcs_element = AXIOM_NODE_GET_DATA_ELEMENT(svcs, env);
+ if (svcs_element)
+ {
+ root_element_name = AXIOM_ELEMENT_GET_LOCALNAME(svcs_element, env);
+ }
+ }
+
+ if (root_element_name && 0 == AXIS2_STRCMP(AXIS2_SVC_ELEMENT, root_element_name))
{
axis2_svc_t *svc = NULL;
axis2_svc_builder_t *svc_builder = NULL;
@@ -424,7 +433,7 @@
}
}
- else if (0 == AXIS2_STRCMP(AXIS2_SVC_GRP_ELEMENT, root_element_name))
+ else if (root_element_name && 0 == AXIS2_STRCMP(AXIS2_SVC_GRP_ELEMENT, root_element_name))
{
axis2_svc_grp_builder_t *grp_builder = NULL;
grp_builder = axis2_svc_grp_builder_create_with_svc_and_dep_engine(env,
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org