db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/logging LoggerFactoryImpl.java
Date Mon, 08 Nov 2004 18:19:07 GMT
arminw      2004/11/08 10:19:07

  Modified:    src/java/org/apache/ojb/broker/util/logging
                        LoggerFactoryImpl.java
  Log:
  avoid NPE when logger was null
  
  Revision  Changes    Path
  1.19      +3 -2      db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java
  
  Index: LoggerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- LoggerFactoryImpl.java	23 Jun 2004 07:13:51 -0000	1.18
  +++ LoggerFactoryImpl.java	8 Nov 2004 18:19:07 -0000	1.19
  @@ -160,7 +160,8 @@
           catch (Throwable t)
           {
               logger = getBootLogger();
  -            logger.error("[" + this.getClass().getName() + "] Could not set logger for
class " + loggerClass.getName(), t);
  +            logger.error("[" + this.getClass().getName() + "] Could not set logger for
class '"
  +                    + (loggerClass != null ? loggerClass.getName() : "null") + "'", t);
           }
           return logger;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message