mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-14 08:02:22 +00:00
Added NPE check for defaultTargetUrl in requiresAuthentication
This commit is contained in:
parent
9ec8a44c26
commit
481a9377e4
@ -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()
|
boolean bAttemptAuthentication = (uri.endsWith(request.getContextPath()
|
||||||
+ getFilterProcessesUrl()))
|
+ getFilterProcessesUrl()))
|
||||||
|| ((uri.endsWith(getDefaultTargetUrl()) && !bAuthenticated));
|
|| ((getDefaultTargetUrl() != null
|
||||||
|
&& uri.endsWith(getDefaultTargetUrl()) && !bAuthenticated));
|
||||||
|
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("Authentication attempted for the following URI ==> "
|
logger.debug("Authentication attempted for the following URI ==> "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user