Skip to content
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

Forbid null HttpMessageConverter in RestTemplate and HttpMessageConverterExtractor #23151

Closed
sbrannen opened this issue Jun 18, 2019 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

This issue supersedes #23123 and #23140 with the intention of forbidding null HttpMessageConverter references supplied directly to RestTemplate and HttpMessageConverterExtractor.

Note, however, that we will not seek to prevent users from inserting null values into the list returned by RestTemplate#getMessageConverters(). If a user modifies the list returned by getMessageConverters() so that it contains null values, that will still lead to a NullPointerException when the converters are accessed.

See #23140 (comment) for further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant