[#6707] Parser.parse() fails on trailing whitespace

This commit is contained in:
lukaseder 2017-10-17 12:32:40 +02:00
parent a4407cbfcd
commit eb0a862328

View File

@ -451,10 +451,10 @@ class ParserImpl implements Parser {
}
private static final Query parseQuery(ParserContext ctx, boolean resultQuery) {
parseWhitespaceIf(ctx);
if (ctx.done())
return null;
parseWhitespaceIf(ctx);
try {
switch (ctx.character()) {
case 'a':