mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
Ensure delegate is not null before calling destroy method.
This commit is contained in:
parent
d7c98f95ca
commit
fa2920baa7
@ -91,7 +91,9 @@ public class FilterToBeanProxy implements Filter {
|
||||
//~ Methods ================================================================
|
||||
|
||||
public void destroy() {
|
||||
delegate.destroy();
|
||||
if (delegate != null) {
|
||||
delegate.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
public void doFilter(ServletRequest request, ServletResponse response,
|
||||
|
Loading…
x
Reference in New Issue
Block a user