Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser throws NullPointerException when Filter aggregation clause is empty #8527

Closed
wants to merge 2 commits into from
Closed

Conversation

markharwood
Copy link
Contributor

Added Junit test that recreates the error and fixed FilterParser to default to using a MatchAllDocsFilter if the requested filter clause is left empty.
Closes #8438

…empty.

Added Junit test that recreates the error and fixed FilterParser to default to using a MatchAllDocsFilter if the requested filter clause is left empty.
Closes #8438
@jpountz
Copy link
Contributor

jpountz commented Nov 18, 2014

The fix looks good, I think we need the same fix in the filters (with an s) aggregation?

@jpountz
Copy link
Contributor

jpountz commented Nov 20, 2014

LGTM

@markharwood
Copy link
Contributor Author

Pushed to 1.x, 1.4 and master 0c94314

@markharwood markharwood self-assigned this Nov 21, 2014
@markharwood
Copy link
Contributor Author

Pushed to 1.3, minus the changes for the Filters (with an "s") agg as it doesn't exist there.

@clintongormley clintongormley changed the title Parser throws NullPointerException when Filter aggregation clause is empty Aggs: Parser throws NullPointerException when Filter aggregation clause is empty Nov 25, 2014
@clintongormley clintongormley changed the title Aggs: Parser throws NullPointerException when Filter aggregation clause is empty Aggregations: Parser throws NullPointerException when Filter aggregation clause is empty Nov 25, 2014
@clintongormley clintongormley changed the title Aggregations: Parser throws NullPointerException when Filter aggregation clause is empty Parser throws NullPointerException when Filter aggregation clause is empty Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse Failure: NullPointerException
3 participants