소스 검색

Initialization of exceptionMappings was broken in last commit

Carlos Sanchez 19 년 전
부모
커밋
757062e8f9
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      core/src/main/java/org/acegisecurity/providers/ProviderManager.java

+ 5 - 4
core/src/main/java/org/acegisecurity/providers/ProviderManager.java

@@ -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) {