Skip to content

Commit 5ca5aca

Browse files
committed
Add Null Guard
Issue gh-17933
1 parent c61f53a commit 5ca5aca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public void setUserDetailsChecker(UserDetailsChecker userDetailsChecker) {
157157
* @param grantedAuthoritySupplier the supplier that grants authorities
158158
*/
159159
public void setGrantedAuthoritySupplier(Supplier<Collection<GrantedAuthority>> grantedAuthoritySupplier) {
160+
Assert.notNull(grantedAuthoritySupplier, "grantedAuthoritySupplier cannot be null");
160161
this.grantedAuthoritySupplier = grantedAuthoritySupplier;
161162
}
162163

0 commit comments

Comments
 (0)