356751 Add null protection to ServletContextHandler.doStop

This commit is contained in:
Jan Bartel 2011-09-06 09:25:55 +10:00
parent 44204a2e5b
commit a96052def2
1 changed files with 4 additions and 2 deletions

View File

@ -142,8 +142,10 @@ public class ServletContextHandler extends ContextHandler
protected void doStop() throws Exception
{
super.doStop();
_decorators.clear();
_wrapper.setHandler(null);
if (_decorators != null)
_decorators.clear();
if (_wrapper != null)
_wrapper.setHandler(null);
}
/* ------------------------------------------------------------ */