avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command EventThreadPool.java
Date Thu, 10 Oct 2002 06:19:56 GMT
mcconnell    2002/10/09 23:19:56

  Modified:    event/src/java/org/apache/excalibur/event/command
                        EventThreadPool.java
  Log:
  Tracking down an NPE.
  
  Revision  Changes    Path
  1.3       +10 -1     jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command/EventThreadPool.java
  
  Index: EventThreadPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command/EventThreadPool.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EventThreadPool.java	2 Oct 2002 01:46:57 -0000	1.2
  +++ EventThreadPool.java	10 Oct 2002 06:19:56 -0000	1.3
  @@ -135,6 +135,15 @@
   
       protected void releaseWorker( final WorkerThread worker )
       {
  -        m_pool.release( worker );
  +        try
  +        {
  +            m_pool.release( worker );
  +        }
  +        catch( Throwable e )
  +        {
  +            // trying to figure out why a NullPointer exeception can occur ...
  +            final String error = "Unexpected condition while releasing worker: " + worker
);
  +            e.printStackTrace();
  +        }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message