cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1127605 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java
Date Wed, 25 May 2011 18:07:10 GMT
Author: dkulp
Date: Wed May 25 18:07:10 2011
New Revision: 1127605

URL: http://svn.apache.org/viewvc?rev=1127605&view=rev
Log:
[CXF-3539] Fix NPE in STS if default namespace is used

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java?rev=1127605&r1=1127604&r2=1127605&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxSource.java Wed May
25 18:07:10 2011
@@ -182,8 +182,8 @@ public class StaxSource extends SAXSourc
             }
             // Default namespace
             if (prefix == null || prefix.length() == 0) {
-                attrs.addAttribute(XMLConstants.DEFAULT_NS_PREFIX, 
-                                   null, 
+                attrs.addAttribute("", 
+                                   "", 
                                    XMLConstants.XMLNS_ATTRIBUTE, 
                                    "CDATA", 
                                    uri);



Mime
View raw message