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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to