From 1cb6af7585349416fdf501fa5c692cdf8552f0ff Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 7 May 2015 21:06:23 +0200 Subject: [PATCH] Tests: Fix bad parsing of empty filters. --- .../java/org/elasticsearch/index/query/QueryParseContext.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/query/QueryParseContext.java b/src/main/java/org/elasticsearch/index/query/QueryParseContext.java index 6baf0b631bc..4d6d1378835 100644 --- a/src/main/java/org/elasticsearch/index/query/QueryParseContext.java +++ b/src/main/java/org/elasticsearch/index/query/QueryParseContext.java @@ -233,7 +233,6 @@ public class QueryParseContext { token = parser.nextToken(); if (token == XContentParser.Token.END_OBJECT) { // empty query - parser.nextToken(); return null; } if (token != XContentParser.Token.FIELD_NAME) {