Closed slorello89 closed 3 years ago
steps to reproduce? Did you run the DeleteApplication as is? or did you change anything to cause that error?
I just ran the Delete application as is - Delete Application, by design, responds with no content - guessing that getEntity returns null if there's no response body?
@yallen011 I would like to work on this issue.
@yallen011 This the PR I have raised for the fix: https://github.com/Vonage/vonage-java-sdk/pull/304
@vyj7 thank you for your contribution to the SDK. I will start reviewing it.
https://github.com/Vonage/vonage-java-sdk/blob/0a58c70440c34c67e36d5606235d967e07f7d5ec/src/main/java/com/nexmo/client/logging/LoggingUtils.java#L33
Looks like the logger tosses an exception if you run into a situation where there is a null entity (e.g. NoContent responses)
Looks like it should probably validate the response code isn't a 204 or do some null checking. Exception I got from running the DeleteApplication code snippet: