Skip to content

null_pointer_exception when filters aggregation is empty #41408

@noamkush

Description

@noamkush

Elasticsearch version: 7.0.0 (reproducible on official docker)

The following request:

GET _search
{
  "aggs": {
    "my_filters": {
      "filters": {}
    }
  }
}

Results in:

{
  "error": {
    "root_cause": [
      {
        "type": "null_pointer_exception",
        "reason": null
      }
    ],
    "type": "null_pointer_exception",
    "reason": null
  },
  "status": 500
}

Workaround is easy but it should probably be fixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions