jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r595599 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java
Date Fri, 16 Nov 2007 09:11:12 GMT
Author: mreutegg
Date: Fri Nov 16 01:11:11 2007
New Revision: 595599

URL: http://svn.apache.org/viewvc?rev=595599&view=rev
Log:
JCR-1217: Aggregate include ignored if no primaryType set

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java?rev=595599&r1=595598&r2=595599&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AggregateRuleImpl.java
Fri Nov 16 01:11:11 2007
@@ -330,7 +330,7 @@
                 for (Iterator it = cne.iterator(); it.hasNext(); ) {
                     NodeId id = ((NodeState.ChildNodeEntry) it.next()).getId();
                     NodeState ns = (NodeState) ism.getItemState(id);
-                    if (ns.getNodeTypeName().equals(nodeTypeName)) {
+                    if (nodeTypeName != null || ns.getNodeTypeName().equals(nodeTypeName))
{
                         collector.add(ns);
                     }
                 }



Mime
View raw message