elasticsearch/elasticsearch — pull request #2094 by andriusj (2012-07-10 09:00:52+00:00)
Title: Avoid NPE when passing a bool filter with should, must or not keys omitted.

I was getting NPEs on a seemingly valid JSON:
"filtered":{
"query":{
"match_all":{}
},
"filter":{
"and":{
"filters":[
{
"should":{
"term":{
"category":"Laptops"
}
}
}
]
}
}