- Add a !null as with the other servlets for the debug flag.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 17 Oct 2006 00:27:49 +0000 (00:27 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 17 Oct 2006 00:27:49 +0000 (00:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464757 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/servlets/DefaultServlet.java

index 089fde2..2b5b1b3 100644 (file)
@@ -215,7 +215,8 @@ public class DefaultServlet
      */
     public void init() throws ServletException {
 
-        debug = Integer.parseInt(getServletConfig().getInitParameter("debug"));
+        if (getServletConfig().getInitParameter("debug") != null)
+            debug = Integer.parseInt(getServletConfig().getInitParameter("debug"));
 
         if (getServletConfig().getInitParameter("input") != null)
             input = Integer.parseInt(getServletConfig().getInitParameter("input"));