Changeset 1957


Ignore:
Timestamp:
12/20/06 17:55:01 (13 years ago)
Author:
curtis
Message:

Workaround in case used files list is null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/test/ReaderTest.java

    r1956 r1957  
    401401      ReaderTest test = (ReaderTest) suite.testAt(0); 
    402402      String[] used = test.getUsedFiles(); 
    403       for (int i=0; i<used.length; i++) { 
    404         if (DEBUG) System.out.println("Removing " + used[i]); 
    405         files.removeElement(used[i]); 
    406       } 
     403      if (used == null) { 
     404        System.out.println("Warning: used files list is null for " + id); 
     405      } 
     406      else { 
     407        for (int i=0; i<used.length; i++) { 
     408          if (DEBUG) System.out.println("Removing " + used[i]); 
     409          files.removeElement(used[i]); 
     410        } 
     411      } 
     412      files.removeElement(id); 
    407413    } 
    408414  } 
Note: See TracChangeset for help on using the changeset viewer.