You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/10/18 19:09:47 UTC
svn commit: r326163 -
/lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java
Author: cutting
Date: Tue Oct 18 10:09:45 2005
New Revision: 326163
URL: http://svn.apache.org/viewcvs?rev=326163&view=rev
Log:
Fix a NullPointerException & improve thread name. From Paul Baclace.
Modified:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java?rev=326163&r1=326162&r2=326163&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java (original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/util/Daemon.java Tue Oct 18 10:09:45 2005
@@ -32,6 +32,8 @@
/** Construct a daemon thread. */
public Daemon(Runnable runnable) {
super(runnable);
+ this.runnable = runnable;
+ this.setName(((Object)runnable).toString());
}
public Runnable getRunnable() {