axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r412056 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java
Date Tue, 06 Jun 2006 09:28:47 GMT
Author: chinthaka
Date: Tue Jun  6 02:28:47 2006
New Revision: 412056

URL: http://svn.apache.org/viewvc?rev=412056&view=rev
Log:
- Fixing http://issues.apache.org/jira/browse/AXIS2-786. Removing a possible NPE.

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java?rev=412056&r1=412055&r2=412056&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/SchemaUtil.java Tue
Jun  6 02:28:47 2006
@@ -15,23 +15,23 @@
  */
 package org.apache.axis2.util;
 
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.soap.SOAPBody;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFactory;
-import org.apache.axiom.soap.SOAPBody;
-import org.apache.axiom.om.OMElement;
-import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.HTTPConstants;
-import org.apache.ws.commons.schema.XmlSchemaElement;
-import org.apache.ws.commons.schema.XmlSchemaType;
+import org.apache.axis2.context.MessageContext;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
+import org.apache.ws.commons.schema.XmlSchemaElement;
 import org.apache.ws.commons.schema.XmlSchemaParticle;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchemaType;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.xml.namespace.QName;
-import java.util.Map;
 import java.util.Iterator;
+import java.util.Map;
 
 /**
  * 
@@ -102,7 +102,7 @@
                             XmlSchemaElement innerElement = (XmlSchemaElement) iterator.next();
                             String name = innerElement.getName();
                             String[] parameterValuesArray = (String[]) parameterMap.get(name);
-                            if (parameterValuesArray.length > 0 &&
+                            if (parameterValuesArray != null &&
                                 !"".equals(parameterValuesArray[0]) && parameterValuesArray[0]
!= null)
                             {
                                 soapFactory.createOMElement(name, 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