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

NullPointerException when Multi get API returns an error #3275

Open
adamseres opened this issue Jan 6, 2025 · 0 comments · May be fixed by #3276
Open

NullPointerException when Multi get API returns an error #3275

adamseres opened this issue Jan 6, 2025 · 0 comments · May be fixed by #3276

Comments

@adamseres
Copy link
Contributor

During some errors the MultiGetResponse is initiated as MultiGetResponse(null).

This happens because the MultiGetHandler tries to parse the success response in the default clause, which is not possible if the request fails with an unhandled error. For example, in my case 401 Unauthorized.

My idea is to use the DefaultResponseHandler, I'll send a PR.

@adamseres adamseres linked a pull request Jan 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant