avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor DirectoryResource.java
Date Fri, 13 Sep 2002 10:18:25 GMT
donaldp     2002/09/13 03:18:25

  Modified:    monitor/src/java/org/apache/avalon/excalibur/monitor
                        DirectoryResource.java
  Log:
  Dont try to test for files if none were present
  
  Revision  Changes    Path
  1.3       +7 -1      jakarta-avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/DirectoryResource.java
  
  Index: DirectoryResource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/DirectoryResource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DirectoryResource.java	13 Sep 2002 10:11:41 -0000	1.2
  +++ DirectoryResource.java	13 Sep 2002 10:18:24 -0000	1.3
  @@ -73,6 +73,12 @@
           final HashSet addedFiles = new HashSet();
   
           final File[] files = m_dir.listFiles();
  +        if( null == files )
  +        {
  +            //In the case that the directory does not exist
  +            return;
  +        }
  +
           for( int i = 0; i < files.length; i++ )
           {
               final File file = files[ i ];
  
  
  

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