django-rest-framework-json-api
django-rest-framework-json-api copied to clipboard
Fix the format_errors bug when response data is None
Fixes #
Related to the PR: https://github.com/django-json-api/django-rest-framework-json-api/pull/1121 Add the test case to support it
Description of the Change
Fix: TypeError: object of type 'NoneType' has no len()
Checklist
- [x] PR only contains one change (considered splitting up PR)
- [x] unit-test added
- [ ] documentation updated
- [ ]
CHANGELOG.md
updated (only for user relevant changes) - [ ] author name in
AUTHORS