You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2013/04/26 09:20:48 UTC

svn commit: r1476083 - /river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/thread/ThreadPool.java

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 {