From: remm Date: Tue, 17 Oct 2006 00:27:49 +0000 (+0000) Subject: - Add a !null as with the other servlets for the debug flag. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=aecc491dea9b99f29c2e2222243d160ba83c37d6;p=tomcat7.0 - Add a !null as with the other servlets for the debug flag. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@464757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java b/java/org/apache/catalina/servlets/DefaultServlet.java index 089fde201..2b5b1b35b 100644 --- a/java/org/apache/catalina/servlets/DefaultServlet.java +++ b/java/org/apache/catalina/servlets/DefaultServlet.java @@ -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"));