ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r634561 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
Date Fri, 07 Mar 2008 06:50:11 GMT
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


Mime
View raw message