fixed accidental NPE on Context logger

This commit is contained in:
Greg Wilkins 2015-07-30 18:50:04 +10:00
parent a568ee6f17
commit 5aa5a4e525
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
if (_contextPath == null)
throw new IllegalStateException("Null contextPath");
if (_logger!=null)
if (_logger==null)
_logger = Log.getLogger(getDisplayName() == null?getContextPath():getDisplayName());
ClassLoader old_classloader = null;
Thread current_thread = null;