410693 ServletContextHandler.setHandler does not relink handlers - check for null
This commit is contained in:
parent
6b9742ff86
commit
0e4fbcb1ca
|
@ -508,7 +508,7 @@ public class ServletContextHandler extends ContextHandler
|
|||
setSessionHandler((SessionHandler) handler);
|
||||
else if (handler instanceof SecurityHandler)
|
||||
setSecurityHandler((SecurityHandler)handler);
|
||||
else if (handler instanceof HandlerWrapper)
|
||||
else if (handler == null || handler instanceof HandlerWrapper)
|
||||
{
|
||||
super.setHandler(handler);
|
||||
relinkHandlers();
|
||||
|
|
Loading…
Reference in New Issue