We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XContentBuilder.value(Boolean) is the only .value(..) method to not check for null. This is inconsistent and probably not wanted.
Casting explicitly to Object - i.e. calling value(Object) - or invoking nullValue() manually solves the problem.
The text was updated successfully, but these errors were encountered:
fix:
public XContentBuilder value(Boolean value) throws IOException { if (value == null) { return nullValue(); } return value(value.booleanValue()); }
Sorry, something went wrong.
ad07810
XContentBuilder throws NPE on null Boolean, closes elastic#1853.
5765344
4dadda3
No branches or pull requests
XContentBuilder.value(Boolean) is the only .value(..) method to not check for null. This is inconsistent and probably not wanted.
Casting explicitly to Object - i.e. calling value(Object) - or invoking nullValue() manually solves the problem.
The text was updated successfully, but these errors were encountered: