Skip to content

Fix GrantedAuthority.authority null in AuthoritiesAuthorizationManager#18784

Merged
rwinch merged 3 commits intospring-projects:7.0.xfrom
rwinch:gh-18544-7.0.x-authoritiesauthorizationmanager-npe
Feb 23, 2026
Merged

Fix GrantedAuthority.authority null in AuthoritiesAuthorizationManager#18784
rwinch merged 3 commits intospring-projects:7.0.xfrom
rwinch:gh-18544-7.0.x-authoritiesauthorizationmanager-npe

Conversation

@rwinch
Copy link
Copy Markdown
Member

@rwinch rwinch commented Feb 23, 2026

Forward merge of gh-18544

Khyojae and others added 3 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 self-assigned this Feb 23, 2026
@rwinch rwinch added the status: forward-port An issue tracking the forward-port of a change made in an earlier branch label Feb 23, 2026
@rwinch rwinch changed the base branch from main to 7.0.x February 23, 2026 16:56
@rwinch rwinch added this to the 7.0.4 milestone Feb 23, 2026
@rwinch rwinch added in: core An issue in spring-security-core type: bug A general bug labels Feb 23, 2026
@rwinch rwinch changed the title Fix: Handle null authority string in AuthoritiesAuthorizationManager Fix GrantedAuthority.authority null in AuthoritiesAuthorizationManager Feb 23, 2026
@rwinch rwinch merged commit 0bb6541 into spring-projects:7.0.x 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