river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1476083 - /river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java
Date Fri, 26 Apr 2013 07:20:48 GMT
Author: peter_firmstone
Date: Fri Apr 26 07:20:47 2013
New Revision: 1476083

URL: http://svn.apache.org/r1476083
Log:
Guard against null task.

Modified:
    river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java

Modified: river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java?rev=1476083&r1=1476082&r2=1476083&view=diff
==============================================================================
--- river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java (original)
+++ river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java Fri Apr 26
07:20:47 2013
@@ -135,6 +135,7 @@ final class ThreadPool implements Execut
 
     // This method must not block - Executor
     public void execute(Runnable runnable, String name) {
+        if (runnable == null) return;
 	Runnable task = new Task(runnable, name);
         boolean accepted = false;
         try {



Mime
View raw message