Null pointer exception when adding BigDecimal field with value null #11699
Labels
>bug
:Core/Infra/Transport API
Transport client API
good first issue
low hanging fruit
help wanted
adoptme
Other captialized numeric types, Integer, Double etc. have a null check when passed in to the XContentBuilder.field method. The XContentBuilder.field(String, BigDecimal) method however throws a NullPointerException.
For consistency it would be better to writeNull() if the BigDecimal value is null.
The text was updated successfully, but these errors were encountered: