Stop causing an exception when there is no AuthenticationException to ApplicationEvent mapping. Requested by Brian Moseley on acegisecurity-developer 10 November 2005.
This commit is contained in:
parent
c167e9fd87
commit
b1d247835a
|
@ -295,10 +295,14 @@ public class ProviderManager extends AbstractAuthenticationManager
|
|||
catch (InvocationTargetException ignored) {}
|
||||
}
|
||||
|
||||
Assert.notNull(event,
|
||||
"A valid event must be available for the exception "
|
||||
+ lastException.getClass().getName());
|
||||
if (event != null) {
|
||||
applicationEventPublisher.publishEvent(event);
|
||||
} else {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("No event was found for the exception "
|
||||
+ lastException.getClass().getName());
|
||||
}
|
||||
}
|
||||
|
||||
// Throw the exception
|
||||
throw lastException;
|
||||
|
|
Loading…
Reference in New Issue