Skip to content

form:options -> exception when 'items' attribute is null [SPR-3046] #7732

@spring-projects-issues

Description

@spring-projects-issues

Marcos V. B. Souza opened SPR-3046 and commented

The 'IllegalArgumentException' occcurs when the items attribute of the form:option tag is null.
I think that instead of throw the exception, could be render a empty select, without options.

Exception:
java.lang.IllegalArgumentException: 'items' cannot be null.
org.springframework.util.Assert.notNull(Assert.java:113)
org.springframework.web.servlet.tags.form.OptionsTag.setItems(OptionsTag.java:67)


Affects: 2.0 final

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions