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 di...@apache.org on 2007/11/30 15:07:22 UTC

svn commit: r599825 - /webservices/axis2/trunk/c/src/core/deployment/conf_builder.c

Author: dinesh
Date: Fri Nov 30 06:07:16 2007
New Revision: 599825

URL: http://svn.apache.org/viewvc?rev=599825&view=rev
Log:
fixed:axis2c-790 , thanks Bill for the suggestions

Modified:
    webservices/axis2/trunk/c/src/core/deployment/conf_builder.c

Modified: webservices/axis2/trunk/c/src/core/deployment/conf_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/conf_builder.c?rev=599825&r1=599824&r2=599825&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/conf_builder.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/conf_builder.c Fri Nov 30 06:07:16 2007
@@ -666,9 +666,6 @@
 {
     axis2_status_t status = AXIS2_FAILURE;
 
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK(env->error, trs_senders, AXIS2_FAILURE);
-
     while (AXIS2_TRUE == axiom_children_qname_iterator_has_next(trs_senders,
                                                                 env))
     {
@@ -854,6 +851,15 @@
                 axutil_class_loader_create_dll(env, impl_info_param);
             axis2_transport_out_desc_add_param(transport_out, env,
                                                impl_info_param);
+
+            if (!transport_sender)
+            {
+                AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
+                                 "transport sender value is NULL, unable to continue");
+                axis2_transport_out_desc_free(transport_out, env);
+                return status;
+            }
+
             status =
                 axis2_transport_out_desc_set_sender(transport_out, env,
                                                     transport_sender);
@@ -1164,8 +1170,26 @@
                     axutil_class_loader_create_dll(env, impl_info_param);
                 axis2_transport_in_desc_add_param(transport_in, env,
                                                   impl_info_param);
+
+                if (!recv)
+                {
+                    AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
+                                     "transport receiver value is NULL, unable to continue");
+                    axis2_transport_in_desc_free(transport_in, env);
+                    return status;
+                }
+
                 stat = axis2_transport_in_desc_set_recv(transport_in, env,
                                                         recv);
+
+                if (stat != AXIS2_SUCCESS)
+                {
+                    AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
+                                     "transport receiver value is NULL, unable to continue");
+                    axis2_transport_in_desc_free(transport_in, env);
+                    return stat;
+                }
+
             }
 
             /* process Parameters */



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