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 sa...@apache.org on 2006/03/21 06:37:50 UTC

svn commit: r387426 - in /webservices/axis2/trunk/c/test/itest/whitemesa: round1/round1_client.c round2/round2_client.c

Author: samisa
Date: Mon Mar 20 21:37:47 2006
New Revision: 387426

URL: http://svn.apache.org/viewcvs?rev=387426&view=rev
Log:
Fixed the segfault on not setting the repo path properly. AXIS2C-91

Modified:
    webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c
    webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c

Modified: webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c?rev=387426&r1=387425&r2=387426&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c (original)
+++ webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c Mon Mar 20 21:37:47 2006
@@ -134,6 +134,13 @@
 
 
     msg_ctx = AXIS2_MEP_CLIENT_PREPARE_SOAP_ENVELOPE (mep_client, &env, node);
+    if (!msg_ctx)
+    {
+        printf("ERROR: Could not prepare message context. ");
+        printf("May be you havent set the repository corretly.\n");
+        return -1;
+    }
+
     AXIS2_MSG_CTX_SET_SOAP_ENVELOPE (msg_ctx, &env, soap_envelope);
     endpoint_ref = axis2_endpoint_ref_create (&env, address);
     AXIS2_CALL_SET_TO (call, &env, endpoint_ref);

Modified: webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c?rev=387426&r1=387425&r2=387426&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c (original)
+++ webservices/axis2/trunk/c/test/itest/whitemesa/round2/round2_client.c Mon Mar 20 21:37:47 2006
@@ -120,6 +120,13 @@
 
     
     msg_ctx = AXIS2_MEP_CLIENT_PREPARE_SOAP_ENVELOPE(mep_client, &env, node);
+    if (!msg_ctx)
+    {
+        printf("ERROR: Could not prepare message context. ");
+        printf("May be you havent set the repository corretly.\n");
+        return -1;
+    }
+
     AXIS2_MSG_CTX_SET_SOAP_ENVELOPE(msg_ctx, &env, soap_envelope);
     endpoint_ref = axis2_endpoint_ref_create(&env, address);
     AXIS2_CALL_SET_TO(call, &env, endpoint_ref);