logbook
logbook copied to clipboard
response.body() is nullable
Description
OpenFeign's response object is nullable. All that is required here is to propagate the null where appropriate.
Motivation and Context
Notably a 404 with an empty response body trigger an NPE causing the library to blow up in ways that are unexpected.
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
Hello @whiskeysierra. Is there any chance you can have a look at this and maybe kick of the CI/CD flows?
Lol, I've done a similar fix at #1360
The fix is merged with https://github.com/zalando/logbook/pull/1362