Author: sylvain Date: Mon Mar 14 10:03:29 2005 New Revision: 157441 URL: http://svn.apache.org/viewcvs?view=rev&rev=157441 Log: Protect ourself against null LogLevels
Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java?view=diff&r1=157440&r2=157441 ============================================================================== --- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java (original) +++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java Mon Mar 14 10:03:29 2005 @@ -99,6 +99,10 @@ } public static void setForbiddenLevel(LogLevel level) { + // If null, reset to the default level + if (level == null) { + level = ERROR; + } ((LoggerWrapper)logger).setForbiddenLevel(level); }