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