cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1358045 - /cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java
Date Fri, 06 Jul 2012 05:24:17 GMT
Author: ema
Date: Fri Jul  6 05:24:17 2012
New Revision: 1358045

URL: http://svn.apache.org/viewvc?rev=1358045&view=rev
Log:
[CXF-4408]:Fix NPE in DOMUtils when soap header contains null namespace element

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java?rev=1358045&r1=1358044&r2=1358045&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/helpers/DOMUtils.java Fri Jul  6 05:24:17 2012
@@ -653,7 +653,8 @@ public final class DOMUtils {
     private static void findAllElementsByTagNameNS(Element el, String nameSpaceURI, String
localName,
                                                    List<Element> elementList) {
 
-        if (localName.equals(el.getLocalName()) && nameSpaceURI.contains(el.getNamespaceURI()))
{
+        if (el.getNamespaceURI() != null && localName.equals(el.getLocalName())
+            && nameSpaceURI.contains(el.getNamespaceURI())) {
             elementList.add(el);
         }
         Element elem = getFirstElement(el);



Mime
View raw message