You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ds...@apache.org on 2006/10/17 18:52:58 UTC

svn commit: r464960 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java

Author: dsosnoski
Date: Tue Oct 17 09:52:57 2006
New Revision: 464960

URL: http://svn.apache.org/viewvc?view=rev&rev=464960
Log:
Fix broken attribute handling code (NPE when no namespace)

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java?view=diff&rev=464960&r1=464959&r2=464960
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/impl/builder/SOAPBuilderHelper.java Tue Oct 17 09:52:57 2006
@@ -87,7 +87,7 @@
         for (int i = 0; i < attribCount; i++) {
             OMNamespace ns = null;
             String uri = parser.getAttributeNamespace(i);
-            if (uri.hashCode() != 0) {
+            if (uri != null && uri.hashCode() != 0) {
                 ns = node.findNamespace(uri,
                         parser.getAttributePrefix(i));
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org