Skip to content
New issue

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

Improve DANGEROUS_disableRequiredPropertiesCheck so that it works with primitive types #655

Open
swallez opened this issue Aug 25, 2023 · 0 comments
Labels
Category: Bug Something isn't working

Comments

@swallez
Copy link
Member

swallez commented Aug 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant