recurly-client-java icon indicating copy to clipboard operation
recurly-client-java copied to clipboard

[BUG] if server respond with 204(no content) client getting NPE here

Open zhuravskiy opened this issue 1 year ago • 0 comments

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())) {

zhuravskiy avatar Feb 13 '24 08:02 zhuravskiy