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 ru...@apache.org on 2008/03/07 07:50:11 UTC

svn commit: r634561 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java

Author: ruchithf
Date: Thu Mar  6 22:50:11 2008
New Revision: 634561

URL: http://svn.apache.org/viewvc?rev=634561&view=rev
Log:
Fixed an issue where we don't check for null nsURI

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java?rev=634561&r1=634560&r2=634561&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java Thu Mar  6 22:50:11 2008
@@ -241,8 +241,17 @@
         while (node != null) {
             if (node.getType() == OMNode.ELEMENT_NODE) {
                 header = (OMElement) node;
-                if (nsURI.equals(header.getNamespace().getNamespaceURI())) {
-                    headers.add(header);
+                OMNamespace namespace = header.getNamespace();
+                if (nsURI == null) {
+                    if (namespace == null) {
+                        headers.add(header);
+                    }
+                } else {
+                    if (namespace != null) {
+                        if (nsURI.equals(namespace.getNamespaceURI())) {
+                            headers.add(header);
+                        }
+                    }
                 }
             }
             node = node.getNextOMSibling();



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