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

if server respond with 204(no content) client getting NPE here #261

Open
zhuravskiy opened this issue Feb 13, 2024 · 0 comments
Open

if server respond with 204(no content) client getting NPE here #261

zhuravskiy opened this issue Feb 13, 2024 · 0 comments

Comments

@zhuravskiy
Copy link
Contributor

Good day!

https://github.com/recurly/recurly-client-java/blob/9fba0d3393496ee6b269131a139ef92d7dd82a4a/src/main/java/com/recurly/v3/BaseClient.java#L147C11-L147C82

if (BINARY_TYPES.contains(contentType.type() + "/" + contentType.subtype())) {

please replace to

if (contentType != null && BINARY_TYPES.contains(contentType.type() + "/" + contentType.subtype())) {
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

No branches or pull requests

1 participant