Skip to content

Cannot create OrRequestMatcher with List.of(...) #10703

@sgraca

Description

@sgraca

Describe the bug
The constructor for OrRequestMatcher fails with NullPointerException if the argument is a list created with Java's List.of method.

To Reproduce

new OrRequestMatcher(List.of(new AntPathRequestMatcher("/test")));

Expected behavior
A working object is constructed

Sample

See steps to reproduce

Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions