You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2003/07/18 07:00:10 UTC
cvs commit: cocoon-2.1/src/java/org/apache/cocoon/bean CocoonBean.java
joerg 2003/07/17 22:00:08
Modified: src/java/org/apache/cocoon/bean CocoonBean.java
Log:
fixed NPE: logger was used before it is initialized
Revision Changes Path
1.14 +2 -2 cocoon-2.1/src/java/org/apache/cocoon/bean/CocoonBean.java
Index: CocoonBean.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/bean/CocoonBean.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- CocoonBean.java 27 Jun 2003 13:50:38 -0000 1.13
+++ CocoonBean.java 18 Jul 2003 05:00:06 -0000 1.14
@@ -158,6 +158,7 @@
public void initialize() throws Exception {
// @todo@ when does the logger get initialised? uv
// @todo@ these should log then throw exceptions back to the caller, not use system.exit()
+ setLogLevel("ERROR");
if (contextDir.equals("")) {
String error =
@@ -178,7 +179,6 @@
log.fatalError(error);
throw new ProcessingException(error);
}
- setLogLevel("ERROR");
this.context = getDir(this.contextDir, "context");
this.work = getDir(workDir, "working");