elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

Improve DANGEROUS_disableRequiredPropertiesCheck so that it works with primitive types

Open swallez opened this issue 2 years ago • 0 comments

This workaround doesn't work with primitive types, causing errors like: java.lang.NullPointerException: Cannot invoke "java.lang.Long.longValue()" because the return value of "co.elastic.clients.util.ApiTypeHelper.requireNonNull(Object, Object, String)" is null.

Primitive types should be set to their default values when the workaround is enabled.

swallez avatar Aug 25 '23 14:08 swallez