Skip to content

Fix GrantedAuthority.authority null in AuthoritiesAuthorizationManager#18785

Merged
rwinch merged 4 commits intospring-projects:mainfrom
rwinch:gh-18544-main-authoritiesauthorizationmanager-npe
Feb 23, 2026
Merged

Fix GrantedAuthority.authority null in AuthoritiesAuthorizationManager#18785
rwinch merged 4 commits intospring-projects:mainfrom
rwinch:gh-18544-main-authoritiesauthorizationmanager-npe

Conversation

@rwinch
Copy link
Copy Markdown
Member

@rwinch rwinch commented Feb 23, 2026

Forward merge of gh-18544

Khyojae and others added 4 commits February 23, 2026 09:30
This prevents NPE when GrantedAuthority.getAuthority() returns null. Closes spring-projectsgh-18543

Signed-off-by: Khyojae <khjae201@gmail.com>
- Fix checkstyle
- Fix the test to use Collection that throws NullPointerException on .contains(null) to replicate the reported issue

Closes spring-projectsgh-18544

Signed-off-by: Robert Winch <362503+rwinch@users.noreply.github.com>
@rwinch rwinch added this to the 7.1.0-M3 milestone Feb 23, 2026
@rwinch rwinch self-assigned this Feb 23, 2026
@rwinch rwinch added in: core An issue in spring-security-core type: bug A general bug status: forward-port An issue tracking the forward-port of a change made in an earlier branch labels Feb 23, 2026
@rwinch rwinch merged commit b451739 into spring-projects:main Feb 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: core An issue in spring-security-core status: forward-port An issue tracking the forward-port of a change made in an earlier branch type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants