Author: alessio.soldano(a)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);
Show replies by date