mirror of https://github.com/apache/lucene.git
fix parsing of empty value source list
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1002002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6484cf7c29
commit
c562b10b2e
|
@ -214,9 +214,8 @@ public class FunctionQParser extends QParser {
|
|||
*/
|
||||
public List<ValueSource> parseValueSourceList() throws ParseException {
|
||||
List<ValueSource> sources = new ArrayList<ValueSource>(3);
|
||||
for (;;) {
|
||||
sources.add(parseValueSource(false));
|
||||
if (! consumeArgumentDelimiter()) break;
|
||||
while (hasMoreArguments()) {
|
||||
sources.add(parseValueSource(true));
|
||||
}
|
||||
return sources;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue