jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1464025 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexingConfigurationImpl.java
Date Wed, 03 Apr 2013 14:06:23 GMT
Author: mreutegg
Date: Wed Apr  3 14:06:23 2013
New Revision: 1464025

URL: http://svn.apache.org/r1464025
Log:
JCR-3556: IndexingConfigurationImpl.getAggregateRules() should return null in case no aggregate
rules are configured

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexingConfigurationImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexingConfigurationImpl.java?rev=1464025&r1=1464024&r2=1464025&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexingConfigurationImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/IndexingConfigurationImpl.java
Wed Apr  3 14:06:23 2013
@@ -185,7 +185,11 @@ public class IndexingConfigurationImpl
             }
 
         }
-        aggregateRules = idxAggregates.toArray(new AggregateRule[idxAggregates.size()]);
+        if (idxAggregates.isEmpty()) {
+            aggregateRules = null;
+        } else {
+            aggregateRules = idxAggregates.toArray(new AggregateRule[idxAggregates.size()]);
+        }
     }
 
     /**



Mime
View raw message