434715 Avoid call to ServletHolder.getServlet() during handle() iff servlet is available and instantiated

This commit is contained in:
Jan Bartel 2014-05-13 11:21:38 +02:00
parent 9fb6e96a40
commit fb2010177c
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
{
if (!isStarted())
throw new UnavailableException("Servlet not initialized", -1);
if (_unavailable!=0 || !_initOnStartup)
if (_unavailable!=0 || (!_initOnStartup && servlet==null))
servlet=getServlet();
if (servlet==null)
throw new UnavailableException("Could not instantiate "+_class);