You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2013/06/25 17:08:52 UTC
svn commit: r1496512 -
/santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
Author: mullan
Date: Tue Jun 25 15:08:52 2013
New Revision: 1496512
URL: http://svn.apache.org/r1496512
Log:
Don't execute NodeFilters if set is empty.
Modified:
santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
Modified: santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java?rev=1496512&r1=1496511&r2=1496512&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java (original)
+++ santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/org/apache/jcp/xml/dsig/internal/dom/ApacheNodeSetData.java Tue Jun 25 15:08:52 2013
@@ -45,7 +45,7 @@ public class ApacheNodeSetData implement
public Iterator iterator() {
// If nodefilters are set, must execute them first to create node-set
- if (xi.getNodeFilters() != null) {
+ if (xi.getNodeFilters() != null && !xi.getNodeFilters().isEmpty()) {
return Collections.unmodifiableSet
(getNodeSet(xi.getNodeFilters())).iterator();
}