XContentBuilder throws NPE on null Boolean, closes #1853.
This commit is contained in:
parent
ae69e7c472
commit
ad07810610
|
@ -849,6 +849,9 @@ public final class XContentBuilder {
|
|||
}
|
||||
|
||||
public XContentBuilder value(Boolean value) throws IOException {
|
||||
if (value == null) {
|
||||
return nullValue();
|
||||
}
|
||||
return value(value.booleanValue());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue