cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjohns...@apache.org
Subject svn commit: r498489 - /cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java
Date Sun, 21 Jan 2007 23:19:11 GMT
Author: jjohnston
Date: Sun Jan 21 15:19:09 2007
New Revision: 498489

URL: http://svn.apache.org/viewvc?view=rev&rev=498489
Log:
prevent NPE in debug statement

Modified:
    cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java

Modified: cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java?view=diff&rev=498489&r1=498488&r2=498489
==============================================================================
--- cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java
(original)
+++ cocoon/trunk/core/cocoon-thread/cocoon-thread-impl/src/main/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java
Sun Jan 21 15:19:09 2007
@@ -318,8 +318,8 @@
         }
 
         if( getLogger().isDebugEnabled() ) {
-            getLogger().debug( "Command entered: " + command.toString() +
-                               ", pool=" + pool.getName() + ", delay=" +
+            getLogger().debug( "Command entered: " + command +
+                               ", pool=" + (null == pool ? "null" : pool.getName()) + ",
delay=" +
                                delay + ", interval=" + interval );
         }
 



Mime
View raw message