Skip to content

WebFlux AbstractView does not allow null model values anymore #23038

@bclozel

Description

@bclozel

As of 172afb5, the AbstractView implementation switched from a LinkedHashMap to a ConcurrentHashMap for storing model attributes. The latter does not allow null values and will throw a NullPointerException if the provided model has a null value associated with any key.

This is currently breaking the Spring Boot build as we're adding null values to the model in the error handling support.

Should we try and relax that requirement or just enforce it by filtering null values before copying them in the attributes map?

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions