Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Discovered NPE when discovery is enabled and nodes do not have http_address element #139

Merged
merged 1 commit into from
Jul 29, 2014

Conversation

phospodka
Copy link
Contributor

Some cluster nodes (i.e. logstash nodes or I imagine any with http.enabled set to false) will not have the http_address element as part of their result. To avoid a NPE, need to check that the element exists before trying to get it as a string.

…abled set to false) will not have the http_address element as part of their result. To avoid a NPE need to check that the element exists before trying to get it as a string.
kramer pushed a commit that referenced this pull request Jul 29, 2014
bugfix: NPE when discovery is enabled and nodes do not have http_address element
@kramer kramer merged commit 9222601 into searchbox-io:master Jul 29, 2014
@kramer
Copy link
Member

kramer commented Jul 29, 2014

Thanks for the contribution!

@kramer kramer added this to the v0.1.3 milestone Sep 19, 2014
@kramer kramer added the bug label Sep 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants