avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/packet Acceptor.java
Date Tue, 26 Feb 2002 01:42:08 GMT
leif        02/02/25 17:42:07

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/packet
                        Acceptor.java
  Log:
  Fix a NPE waiting to happen.
  
  Revision  Changes    Path
  1.6       +2 -0      jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/packet/Acceptor.java
  
  Index: Acceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/packet/Acceptor.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Acceptor.java	11 Dec 2001 10:49:19 -0000	1.5
  +++ Acceptor.java	26 Feb 2002 01:42:07 -0000	1.6
  @@ -79,6 +79,7 @@
       {
           m_thread = Thread.currentThread();
   
  +        next:
           while( null != m_thread && !Thread.interrupted() )
           {
               try
  @@ -96,6 +97,7 @@
                   {
                       getLogger().error( "Failed to get receive buffer size for datagram
socket",
                                          ioe );
  +                    continue next;
                   }
   
                   m_datagramSocket.receive( packet );
  
  
  

--
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