Browse Source

Add Null Guard

Issue gh-17933
pull/17949/head
Josh Cummings 3 months ago
parent
commit
5ca5aca48e
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
  1. 1
      web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java

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

@ -157,6 +157,7 @@ public class PreAuthenticatedAuthenticationProvider implements AuthenticationPro @@ -157,6 +157,7 @@ public class PreAuthenticatedAuthenticationProvider implements AuthenticationPro
* @param grantedAuthoritySupplier the supplier that grants authorities
*/
public void setGrantedAuthoritySupplier(Supplier<Collection<GrantedAuthority>> grantedAuthoritySupplier) {
Assert.notNull(grantedAuthoritySupplier, "grantedAuthoritySupplier cannot be null");
this.grantedAuthoritySupplier = grantedAuthoritySupplier;
}

Loading…
Cancel
Save