axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r474133 - /webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c
Date Mon, 13 Nov 2006 04:09:24 GMT
Author: dinesh
Date: Sun Nov 12 20:09:23 2006
New Revision: 474133

URL: http://svn.apache.org/viewvc?view=rev&rev=474133
Log:
fixes for null handling in woden

Modified:
    webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c?view=diff&rev=474133&r1=474132&r2=474133
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/wsdl10_interface_fault_ref.c Sun Nov 12 20:09:23
2006
@@ -158,12 +158,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.nested_configurable.ops =
         AXIS2_MALLOC(env->allocator,
@@ -185,12 +187,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.nested_configurable.base.configurable.ops
=
         AXIS2_MALLOC(env->allocator,
@@ -212,12 +216,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.interface_fault_ref_element.base.nested_element.ops
=
         AXIS2_MALLOC(env->allocator,
@@ -238,12 +244,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.interface_fault_ref_element.base.configurable_element.ops
=
         AXIS2_MALLOC(env->allocator,
@@ -263,12 +271,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.interface_fault_ref_element.base.documentable_element.ops
=
         AXIS2_MALLOC(env->allocator,
@@ -289,12 +299,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.nested_configurable.base.
     configurable.base.documentable.ops = AXIS2_MALLOC(env->allocator,
@@ -315,12 +327,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.interface_fault_ref_element.base.documentable_element.
     wsdl_element.base.attr_extensible.ops =
@@ -343,12 +357,14 @@
     AXIS2_ENV_CHECK(env, NULL);
     if (!interface_fault_ref)
     {
-        interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) create(env);
+	  interface_fault_ref = (void *) create (env);
+	  interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *)interface_fault_ref;
     }
     else
         interface_fault_ref_impl = (woden_wsdl10_interface_fault_ref_impl_t *) interface_fault_ref;
 
-    woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
+    if (interface_fault_ref)
+	  woden_wsdl10_interface_fault_ref_free_ops(interface_fault_ref, env);
 
     interface_fault_ref_impl->interface_fault_ref.base.interface_fault_ref_element.base.documentable_element.
     wsdl_element.base.element_extensible.ops =



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