tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdan...@apache.org
Subject svn commit: r956962 - /tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
Date Tue, 22 Jun 2010 17:45:12 GMT
Author: bdaniel
Date: Tue Jun 22 17:45:12 2010
New Revision: 956962

URL: http://svn.apache.org/viewvc?rev=956962&view=rev
Log:
Potential NPE in NamespaceContextImpl.getPrefixes

Modified:
    tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java?rev=956962&r1=956961&r2=956962&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
Tue Jun 22 17:45:12 2010
@@ -82,7 +82,7 @@ public class NamespaceContextImpl implem
             }
         }
         final Iterator<String> currentIterator = prefixList.iterator();
-        final Iterator parentIterator = parent != null ? null : parent.getPrefixes(nsURI);
+        final Iterator parentIterator = parent == null ? null : parent.getPrefixes(nsURI);
         return new Iterator() {
 
             public boolean hasNext() {



Mime
View raw message