cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/bean CocoonBean.java
Date Fri, 18 Jul 2003 05:00:10 GMT
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");
   
  
  
  

Mime
View raw message