Changeset 2194


Ignore:
Timestamp:
01/31/07 18:10:58 (13 years ago)
Author:
curtis
Message:

Fix possible NullPointerException (maybe?).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/Location.java

    r2178 r2194  
    291291  /* @see java.io.File#listFiles() */ 
    292292  public Location[] listFiles() { 
    293     if (!isDirectory()) return null; 
    294293    String[] s = list(); 
     294    if (s == null) return null; 
    295295    Location[] f = new Location[s.length]; 
    296296    for (int i=0; i<f.length; i++) { 
Note: See TracChangeset for help on using the changeset viewer.