Changeset 2996


Ignore:
Timestamp:
07/18/07 14:17:00 (13 years ago)
Author:
melissa
Message:

Don't throw an exception if a parentless file is given to isThisType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/MicromanagerReader.java

    r2976 r2996  
    106106    Location parent = new Location(name).getAbsoluteFile().getParentFile(); 
    107107    String[] list = parent.list(); 
     108    if (list == null) return false;  
    108109    for (int i=0; i<list.length; i++) { 
    109110      if (list[i].endsWith("metadata.txt")) return super.isThisType(name, open); 
Note: See TracChangeset for help on using the changeset viewer.