# NullPointerException while PinnedQuery with aggregation

**URL:** <https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219>\
**Category:** Elasticsearch\
**Created:** [April 22, 2020, 9:34am UTC](https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219 "2020-04-22T09:34:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [April 22, 2020, 9:49am UTC](https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219/2 "2020-04-22T09:49:11Z")

</div>

Hi Ilia,  
See [Pinned Query with Term Aggregation get me null\_pointer\_exception](https://discuss.elastic.co/t/pinned-query-with-term-aggregation-get-me-null-pointer-exception/227932/2)

---

_[View the full topic](https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219)._
