axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r561721 - in /webservices/axis2/trunk/c/src/core: clientapi/svc_client.c deployment/desc_builder.c
Date Wed, 01 Aug 2007 09:06:22 GMT
Author: manjula
Date: Wed Aug  1 02:06:21 2007
New Revision: 561721

URL: http://svn.apache.org/viewvc?view=rev&rev=561721
Log:
Fixing some errors when policy is NULL.

Modified:
    webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/src/core/deployment/desc_builder.c

Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c?view=diff&rev=561721&r1=561720&r2=561721
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Wed Aug  1 02:06:21 2007
@@ -1370,6 +1370,8 @@
     axis2_desc_t *desc = NULL;
     axis2_policy_include_t *policy_include = NULL;
 
+    AXIS2_PARAM_CHECK(env->error, policy, AXIS2_FAILURE);
+
     svc = axis2_svc_client_get_svc(svc_client, env);
 
     if(!svc)
@@ -1388,6 +1390,7 @@
     {
         return AXIS2_FAILURE;
     }
+    
     axis2_policy_include_add_policy_element(policy_include, env, AXIS2_SERVICE_POLICY, policy);
     return AXIS2_SUCCESS;
 }

Modified: webservices/axis2/trunk/c/src/core/deployment/desc_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/desc_builder.c?view=diff&rev=561721&r1=561720&r2=561721
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/desc_builder.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/desc_builder.c Wed Aug  1 02:06:21 2007
@@ -1018,6 +1018,10 @@
             
             element = axiom_node_get_data_element(node, env);
             policy = neethi_engine_get_policy(env, node, element);
+            if(!policy)
+            {
+                return AXIS2_FAILURE;
+            }    
             axis2_policy_include_add_policy_element(policy_include, env, 
                 type, policy);
         }



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


Mime
View raw message