axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r354036 - in /webservices/axis2/trunk/c/bindings/php/axis2: om_attribute.c om_processing_instruction.c
Date Mon, 05 Dec 2005 10:17:43 GMT
Author: samisa
Date: Mon Dec  5 02:17:36 2005
New Revision: 354036

URL: http://svn.apache.org/viewcvs?rev=354036&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/bindings/php/axis2/om_attribute.c
    webservices/axis2/trunk/c/bindings/php/axis2/om_processing_instruction.c

Modified: webservices/axis2/trunk/c/bindings/php/axis2/om_attribute.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/bindings/php/axis2/om_attribute.c?rev=354036&r1=354035&r2=354036&view=diff
==============================================================================
--- webservices/axis2/trunk/c/bindings/php/axis2/om_attribute.c (original)
+++ webservices/axis2/trunk/c/bindings/php/axis2/om_attribute.c Mon Dec  5 02:17:36 2005
@@ -121,7 +121,8 @@
     if(attr)
     {
        value = AXIS2_OM_ATTRIBUTE_GET_VALUE(attr, &env);
-       RETURN_STRING(value, 1);     
+       if(value)
+            RETURN_STRING(value, 1);     
     }
     RETURN_NULL();
 }

Modified: webservices/axis2/trunk/c/bindings/php/axis2/om_processing_instruction.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/bindings/php/axis2/om_processing_instruction.c?rev=354036&r1=354035&r2=354036&view=diff
==============================================================================
--- webservices/axis2/trunk/c/bindings/php/axis2/om_processing_instruction.c (original)
+++ webservices/axis2/trunk/c/bindings/php/axis2/om_processing_instruction.c Mon Dec  5 02:17:36
2005
@@ -103,7 +103,8 @@
     {
         om_pi = (axis2_om_processing_instruction_t *)AXIS2_OM_NODE_GET_DATA_ELEMENT(node,
&env);
         value = AXIS2_OM_PROCESSING_INSTRUCTION_GET_VALUE(om_pi, &env);
-        RETURN_STRING(value, 1);
+        if(value)
+            RETURN_STRING(value, 1);
     }
     RETURN_NULL();
 }
@@ -130,7 +131,8 @@
     {
         om_pi = (axis2_om_processing_instruction_t *)AXIS2_OM_NODE_GET_DATA_ELEMENT(node,
&env);
         target = AXIS2_OM_PROCESSING_INSTRUCTION_GET_TARGET(om_pi, &env);
-        RETURN_STRING(target , 1);
+        if(target)
+            RETURN_STRING(target , 1);
     }
     RETURN_NULL();
 }



Mime
View raw message