-
Notifications
You must be signed in to change notification settings - Fork 121
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
Fix: Error from no-content responses #304
Conversation
…ion from EntityUtils solution: for empty response log "".
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
=========================================
Coverage 90.00% 90.00%
- Complexity 1438 1439 +1
=========================================
Files 249 249
Lines 3943 3943
Branches 191 192 +1
=========================================
Hits 3549 3549
Misses 343 343
Partials 51 51
|
Hi @vyj7 - this looks like it ought to fix the issue, however without a Unit Test there's no way to set up a regression to validate that it won't happen again in the future - can you please add a unit test to this PR to make sure it doesn't toss the exception anymore? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Unit Tests
@slorello89 I have added UT for LoggingUtils Class |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outstanding, thank you for this PR - very helpful! Happy Hacktoberfest!
@yallen011 - I'll leave this for you to merge but it looks all good in my book! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me. Thank you for contributing to the Vonage Java Server SDK and Hacktoberfest 👻 🎃
Problem: Logging an empty response was throwing IllegalArgumentException from EntityUtils
Solution: For an empty response log nothing by adding a Null check
Contribution Checklist