410693 ServletContextHandler.setHandler does not relink handlers - check for null

This commit is contained in:
Jan Bartel 2013-06-17 20:37:06 +10:00
parent 6b9742ff86
commit 0e4fbcb1ca
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ public class ServletContextHandler extends ContextHandler
setSessionHandler((SessionHandler) handler); setSessionHandler((SessionHandler) handler);
else if (handler instanceof SecurityHandler) else if (handler instanceof SecurityHandler)
setSecurityHandler((SecurityHandler)handler); setSecurityHandler((SecurityHandler)handler);
else if (handler instanceof HandlerWrapper) else if (handler == null || handler instanceof HandlerWrapper)
{ {
super.setHandler(handler); super.setHandler(handler);
relinkHandlers(); relinkHandlers();