diff --git a/core/src/main/java/org/acegisecurity/ui/logout/LogoutFilter.java b/core/src/main/java/org/acegisecurity/ui/logout/LogoutFilter.java index 782d244bcf..44d155c1a2 100644 --- a/core/src/main/java/org/acegisecurity/ui/logout/LogoutFilter.java +++ b/core/src/main/java/org/acegisecurity/ui/logout/LogoutFilter.java @@ -94,10 +94,8 @@ public class LogoutFilter implements Filter { logger.debug("Logging out user '" + auth + "' and redirecting to logout page"); } - if (auth != null) { - for (int i = 0; i < handlers.length; i++) { - handlers[i].logout(httpRequest, httpResponse, auth); - } + for (int i = 0; i < handlers.length; i++) { + handlers[i].logout(httpRequest, httpResponse, auth); } sendRedirect(httpRequest, httpResponse, logoutSuccessUrl);