summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-06-22 17:45:12 +0000
committerbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-06-22 17:45:12 +0000
commit9a1b17a9686a8131a31a18f9ff8705d3e303cf38 (patch)
tree3af2dd9a3164d7fe3667081732f5f46599c19a35 /sca-java-2.x/trunk
parent5eb8043a5abd44f4df8bdd7de099b45a12a251fe (diff)
Potential NPE in NamespaceContextImpl.getPrefixes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
index b35c6456e1..d88f298a6c 100644
--- a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
+++ b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/stax/reader/NamespaceContextImpl.java
@@ -82,7 +82,7 @@ public class NamespaceContextImpl implements NamespaceContext {
}
}
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() {