Ensure delegate is not null before calling destroy method.
This commit is contained in:
parent
d7c98f95ca
commit
fa2920baa7
|
@ -91,8 +91,10 @@ public class FilterToBeanProxy implements Filter {
|
||||||
//~ Methods ================================================================
|
//~ Methods ================================================================
|
||||||
|
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
|
if (delegate != null) {
|
||||||
delegate.destroy();
|
delegate.destroy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void doFilter(ServletRequest request, ServletResponse response,
|
public void doFilter(ServletRequest request, ServletResponse response,
|
||||||
FilterChain chain) throws IOException, ServletException {
|
FilterChain chain) throws IOException, ServletException {
|
||||||
|
|
Loading…
Reference in New Issue