mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-16 23:33:31 +00:00
Initialization of exceptionMappings was broken in last commit
This commit is contained in:
parent
5e56d6f6ea
commit
757062e8f9
@ -127,15 +127,16 @@ public class ProviderManager extends AbstractAuthenticationManager implements In
|
||||
AuthenticationFailureProxyUntrustedEvent.class.getName());
|
||||
}
|
||||
|
||||
public ProviderManager() {
|
||||
exceptionMappings.putAll(DEFAULT_EXCEPTION_MAPPINGS);
|
||||
}
|
||||
|
||||
//~ Methods ========================================================================================================
|
||||
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
checkIfValidList(this.providers);
|
||||
Assert.notNull(this.messages, "A message source must be set");
|
||||
|
||||
if (exceptionMappings == null) {
|
||||
doAddExtraDefaultExceptionMappings(DEFAULT_EXCEPTION_MAPPINGS);
|
||||
}
|
||||
doAddExtraDefaultExceptionMappings(DEFAULT_EXCEPTION_MAPPINGS);
|
||||
}
|
||||
|
||||
private void checkIfValidList(List listToCheck) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user