From 481a9377e471700068937f013c229b33b031f9e0 Mon Sep 17 00:00:00 2001 From: Scott McCrory Date: Thu, 27 Apr 2006 02:23:46 +0000 Subject: [PATCH] Added NPE check for defaultTargetUrl in requiresAuthentication --- .../ui/webapp/SiteminderAuthenticationProcessingFilter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/ui/webapp/SiteminderAuthenticationProcessingFilter.java b/core/src/main/java/org/acegisecurity/ui/webapp/SiteminderAuthenticationProcessingFilter.java index f6eeea0163..6a79920df7 100644 --- a/core/src/main/java/org/acegisecurity/ui/webapp/SiteminderAuthenticationProcessingFilter.java +++ b/core/src/main/java/org/acegisecurity/ui/webapp/SiteminderAuthenticationProcessingFilter.java @@ -246,10 +246,11 @@ public class SiteminderAuthenticationProcessingFilter } } - //if true is returned then authentication will be attempted. + // if true is returned then authentication will be attempted. boolean bAttemptAuthentication = (uri.endsWith(request.getContextPath() + getFilterProcessesUrl())) - || ((uri.endsWith(getDefaultTargetUrl()) && !bAuthenticated)); + || ((getDefaultTargetUrl() != null + && uri.endsWith(getDefaultTargetUrl()) && !bAuthenticated)); if (logger.isDebugEnabled()) { logger.debug("Authentication attempted for the following URI ==> "