axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r496685 - /webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c
Date Tue, 16 Jan 2007 13:39:43 GMT
Author: samisa
Date: Tue Jan 16 05:39:42 2007
New Revision: 496685

URL: http://svn.apache.org/viewvc?view=rev&rev=496685
Log:
Dropped hash tables into the respective locations

Modified:
    webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c

Modified: webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c?view=diff&rev=496685&r1=496684&r2=496685
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/endpoint_ref.c Tue Jan 16 05:39:42 2007
@@ -177,46 +177,6 @@
         }
     }
 
-    endpoint_ref_impl->ref_param_list = axis2_array_list_create(env, 0);
-    if (!(endpoint_ref_impl->ref_param_list))
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        axis2_endpoint_ref_free(&(endpoint_ref_impl->endpoint_ref), env);
-        return NULL;
-    }
-
-    endpoint_ref_impl->metadata_list = axis2_array_list_create(env, 0);
-    if (!(endpoint_ref_impl->metadata_list))
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        axis2_endpoint_ref_free(&(endpoint_ref_impl->endpoint_ref), env);
-        return NULL;
-    }
-
-    endpoint_ref_impl->ref_attribute_list = axis2_array_list_create(env, 0);
-    if (!(endpoint_ref_impl->ref_attribute_list))
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        axis2_endpoint_ref_free(&(endpoint_ref_impl->endpoint_ref), env);
-        return NULL;
-    }
-
-    endpoint_ref_impl->meta_attribute_list = axis2_array_list_create(env, 0);
-    if (!(endpoint_ref_impl->meta_attribute_list))
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        axis2_endpoint_ref_free(&(endpoint_ref_impl->endpoint_ref), env);
-        return NULL;
-    }
-
-    endpoint_ref_impl->extension_list = axis2_array_list_create(env, 0);
-    if (!(endpoint_ref_impl->extension_list))
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        axis2_endpoint_ref_free(&(endpoint_ref_impl->endpoint_ref), env);
-        return NULL;
-    }
-
     /* initialize ops */
     endpoint_ref_impl->endpoint_ref.ops  =
         AXIS2_MALLOC(env->allocator, sizeof(axis2_endpoint_ref_ops_t));
@@ -463,6 +423,16 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     endpoint_ref_impl = AXIS2_INTF_TO_IMPL(endpoint_ref);
+    
+    if (!(endpoint_ref_impl->ref_param_list))
+    {
+        endpoint_ref_impl->ref_param_list = axis2_array_list_create(env, 0);
+        if (!(endpoint_ref_impl->ref_param_list))
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
 
     if (endpoint_ref_impl->ref_param_list && ref_param_node)
     {
@@ -483,6 +453,16 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     endpoint_ref_impl = AXIS2_INTF_TO_IMPL(endpoint_ref);
+   
+    if (!(endpoint_ref_impl->metadata_list))
+    {
+        endpoint_ref_impl->metadata_list = axis2_array_list_create(env, 0);
+        if (!(endpoint_ref_impl->metadata_list))
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
 
     if (endpoint_ref_impl->metadata_list && meta_data_node)
     {
@@ -547,6 +527,16 @@
 
     endpoint_ref_impl = AXIS2_INTF_TO_IMPL(endpoint_ref);
 
+    if (!(endpoint_ref_impl->ref_attribute_list))
+    {
+        endpoint_ref_impl->ref_attribute_list = axis2_array_list_create(env, 0);
+        if (!(endpoint_ref_impl->ref_attribute_list))
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+
     if (endpoint_ref_impl->ref_attribute_list && attr)
     {
         return AXIS2_ARRAY_LIST_ADD(endpoint_ref_impl->ref_attribute_list, env, attr);
@@ -566,6 +556,16 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     endpoint_ref_impl = AXIS2_INTF_TO_IMPL(endpoint_ref);
+    
+    if (!(endpoint_ref_impl->meta_attribute_list))
+    {
+        endpoint_ref_impl->meta_attribute_list = axis2_array_list_create(env, 0);
+        if (!(endpoint_ref_impl->meta_attribute_list))
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
 
     if (endpoint_ref_impl->meta_attribute_list && attr)
     {
@@ -586,6 +586,16 @@
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
     endpoint_ref_impl = AXIS2_INTF_TO_IMPL(endpoint_ref);
+
+    if (!(endpoint_ref_impl->extension_list))
+    {
+        endpoint_ref_impl->extension_list = axis2_array_list_create(env, 0);
+        if (!(endpoint_ref_impl->extension_list))
+        {
+            AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
 
     if (endpoint_ref_impl->extension_list && extension_node)
     {



---------------------------------------------------------------------
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