[jbossws-commits] JBossWS SVN: r16458 - thirdparty/cxf/branches/cxf-2.2.12/common/common/src/main/java/org/apache/cxf/helpers.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Wed Jul 11 11:28:17 EDT 2012


Author: alessio.soldano at jboss.com
Date: 2012-07-11 11:28:16 -0400 (Wed, 11 Jul 2012)
New Revision: 16458

Modified:
   thirdparty/cxf/branches/cxf-2.2.12/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java
Log:
[JBPAPP-9457] porting fix for CXF-4408


Modified: thirdparty/cxf/branches/cxf-2.2.12/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java
===================================================================
--- thirdparty/cxf/branches/cxf-2.2.12/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java	2012-07-11 14:13:47 UTC (rev 16457)
+++ thirdparty/cxf/branches/cxf-2.2.12/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java	2012-07-11 15:28:16 UTC (rev 16458)
@@ -621,7 +621,8 @@
     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);



More information about the jbossws-commits mailing list