Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NPE in AggregationSpout when there is not any status index created #597
When we are running crawler topology and there is not any index status created yet in ES, AggregationSpout is throwing a NPE.
I think that the fix for this issue should be done in onResponse checking that results.getAggregations() is not null.
Thanks in advance @jnioche and let me know if that works for you I can create a PR for this too
We added a workaround for this issue in our code, basically what we did is extend AggregationSpout and overrride onResponse method.
this solved the issue, response.getAggregations() is null when there is no any index