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 Sat, 18 Dec 2004 13:42:52 GMT
arminw      2004/12/18 05:42:52

  Modified:    src/java/org/apache/ojb/broker/util/logging
                        LoggerFactoryImpl.java
  Log:
  fix NPE
  
  Revision  Changes    Path
  1.21      +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.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- LoggerFactoryImpl.java	14 Nov 2004 09:36:43 -0000	1.20
  +++ LoggerFactoryImpl.java	18 Dec 2004 13:42:52 -0000	1.21
  @@ -150,7 +150,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