axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r540877 - /webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java
Date Wed, 23 May 2007 08:21:23 GMT
Author: keithc
Date: Wed May 23 01:21:22 2007
New Revision: 540877

URL: http://svn.apache.org/viewvc?view=rev&rev=540877
Log:
Avoiding potential NPE


Modified:
    webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java

Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java?view=diff&rev=540877&r1=540876&r2=540877
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java
(original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/description/AxisBindingOperation.java
Wed May 23 01:21:22 2007
@@ -162,10 +162,11 @@
                 bindingOpElement.addAttribute(omFactory.createOMAttribute(
                         WSDL2Constants.ATTRIBUTE_FAULT_SERIALIZATION, whttp, property));
             }
-            property = this.options.get(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED).toString();
-            if (property != null) {
+            Boolean ignoreUncited =
+                    (Boolean) this.options.get(WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED);
+            if (ignoreUncited != null) {
                 bindingOpElement.addAttribute(omFactory.createOMAttribute(
-                        WSDL2Constants.ATTRIBUTE_IGNORE_UNCITED, whttp, property));
+                        WSDL2Constants.ATTRIBUTE_IGNORE_UNCITED, whttp, ignoreUncited.toString()));
             }
             property = (String) this.options.get(WSDL2Constants.ATTR_WHTTP_METHOD);
             if (property != null) {



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