SOLR-7046: NullPointerException when group.function uses query() function

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1655525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2015-01-29 05:22:04 +00:00
parent 98bd7cc831
commit 667fa3a270
2 changed files with 7 additions and 1 deletions

View File

@ -93,6 +93,12 @@ New Features
deprecated in favour of close(). (Mark Miller, Tomás Fernández Löbbe, Alan deprecated in favour of close(). (Mark Miller, Tomás Fernández Löbbe, Alan
Woodward) Woodward)
Bug Fixes
----------------------
* SOLR-7046: NullPointerException when group.function uses query() function.
(Jim Musil via Erick Erickson)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -927,7 +927,7 @@ public class Grouping {
*/ */
@Override @Override
protected void prepare() throws IOException { protected void prepare() throws IOException {
Map context = ValueSource.newContext(searcher); context = ValueSource.newContext(searcher);
groupBy.createWeight(context, searcher); groupBy.createWeight(context, searcher);
actualGroupsToFind = getMax(offset, numGroups, maxDoc); actualGroupsToFind = getMax(offset, numGroups, maxDoc);
} }