axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r373985 - /webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
Date Wed, 01 Feb 2006 04:25:11 GMT
Author: sahan
Date: Tue Jan 31 20:25:05 2006
New Revision: 373985

URL: http://svn.apache.org/viewcvs?rev=373985&view=rev
Log:
Fixed a crash due to null pointer

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=373985&r1=373984&r2=373985&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Tue Jan 31
20:25:05 2006
@@ -820,6 +820,13 @@
             xml_reader = NULL;
             return NULL;
         }
+        if(NULL == soap_builder)
+        {
+            AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
+            om_builder = NULL;
+            xml_reader = NULL;
+            return NULL;
+        }
         soap_builder = axis2_soap_builder_create(env, om_builder,
                         soap_ns_uri);
         soap_envelope = AXIS2_SOAP_BUILDER_GET_SOAP_ENVELOPE(soap_builder, env);



Mime
View raw message