Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48582
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 11:07:00 +0000 (11:07 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 11:07:00 +0000 (11:07 +0000)
Avoid NPE as config may be null but ctxt won't be

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@910471 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/servlet/JspServletWrapper.java

index be7d227..8f16a57 100644 (file)
@@ -162,7 +162,7 @@ public class JspServletWrapper {
     }
 
     public ServletContext getServletContext() {
-        return config.getServletContext();
+        return ctxt.getServletContext();
     }
 
     /**