Ensure delegate is not null before calling destroy method.

This commit is contained in:
Ben Alex 2004-09-01 21:03:34 +00:00
parent d7c98f95ca
commit fa2920baa7
1 changed files with 3 additions and 1 deletions

View File

@ -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,