Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 58892 invoked from network); 25 Jan 2009 10:12:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2009 10:12:16 -0000 Received: (qmail 73284 invoked by uid 500); 25 Jan 2009 10:12:15 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 73242 invoked by uid 500); 25 Jan 2009 10:12:15 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 73233 invoked by uid 99); 25 Jan 2009 10:12:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 02:12:15 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 10:12:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D445B23889A0; Sun, 25 Jan 2009 10:11:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r737494 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java Date: Sun, 25 Jan 2009 10:11:52 -0000 To: commits@cxf.apache.org From: cschneider@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090125101152.D445B23889A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cschneider Date: Sun Jan 25 10:11:52 2009 New Revision: 737494 URL: http://svn.apache.org/viewvc?rev=737494&view=rev Log: CXF-2003 avoid comparing a namespace of null with a namespace of "" Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java?rev=737494&r1=737493&r2=737494&view=diff ============================================================================== --- cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java (original) +++ cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/DOMUtils.java Sun Jan 25 10:11:52 2009 @@ -311,7 +311,8 @@ for (Node n = parent.getFirstChild(); n != null; n = n.getNextSibling()) { if (n instanceof Element) { Element e = (Element) n; - if (ns.equals(e.getNamespaceURI()) && localName.equals(e.getLocalName())) { + String eNs = (e.getNamespaceURI() == null) ? "" : e.getNamespaceURI(); + if (ns.equals(eNs) && localName.equals(e.getLocalName())) { r.add(e); } }