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/03/21 06:34:49 UTC

svn commit: r387424 - /webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c

Author: samisa
Date: Mon Mar 20 21:34:48 2006
New Revision: 387424

URL: http://svn.apache.org/viewcvs?rev=387424&view=rev
Log:
Fixed the problem of client segfaulting when repo is not given. AXIS2C-91

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?rev=387424&r1=387423&r2=387424&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Mon Mar 20 21:34:48 2006
@@ -204,8 +204,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     
     mep_client_impl = AXIS2_INTF_TO_IMPL(mep_client);
-    
-    msg_ctx = axis2_msg_ctx_create(env, AXIS2_SVC_CTX_GET_CONF_CTX(mep_client_impl->svc_ctx, env), NULL, NULL);
+   
+    if (mep_client_impl->svc_ctx)
+    {
+        msg_ctx = axis2_msg_ctx_create(env, 
+                    AXIS2_SVC_CTX_GET_CONF_CTX(mep_client_impl->svc_ctx, env), 
+                    NULL, NULL);
+    }
+
     if (!msg_ctx)
     {
         return NULL;