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:
Yonik Seeley 2010-09-28 03:51:14 +00:00
parent 6484cf7c29
commit c562b10b2e
1 changed files with 2 additions and 3 deletions

View File

@ -214,9 +214,8 @@ public class FunctionQParser extends QParser {
*/ */
public List<ValueSource> parseValueSourceList() throws ParseException { public List<ValueSource> parseValueSourceList() throws ParseException {
List<ValueSource> sources = new ArrayList<ValueSource>(3); List<ValueSource> sources = new ArrayList<ValueSource>(3);
for (;;) { while (hasMoreArguments()) {
sources.add(parseValueSource(false)); sources.add(parseValueSource(true));
if (! consumeArgumentDelimiter()) break;
} }
return sources; return sources;
} }