Skip to content

ProviderManager#checkState() throws NullPointerException #8689

@yukihane

Description

@yukihane

Describe the bug

When use java.util.List.of(), ProviderManager#checkState() throws NullPointerException.

checkState() uses List#contains(null) since #7713 (comment), but it may throws NullPointerException:

NullPointerException - if the specified element is null and this list does not permit null elements (optional)

To Reproduce

new ProviderManager(List.of(myProvider));

Expected behavior

NPE is not thrown.

Metadata

Metadata

Labels

in: coreAn issue in spring-security-coretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions