Bug 277027 Fix NPE if no security handler installed

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@239 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
David Jencks 2009-05-19 22:33:15 +00:00
parent 7b3eda29df
commit c170801600
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ public class WebAppContext extends ServletContextHandler
_configurations=null;
// restore security handler
if (_securityHandler.getHandler()==null)
if (_securityHandler != null && _securityHandler.getHandler()==null)
{
_sessionHandler.setHandler(_securityHandler);
_securityHandler.setHandler(_servletHandler);