Changeset 4252


Ignore:
Timestamp:
07/24/08 11:05:05 (12 years ago)
Author:
melissa
Message:

Fixed NPE.

File:
1 edited

Legend:

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

    r4048 r4252  
    458458    String first = pat.substring(dir.length()); 
    459459    first = first.replaceAll("<([0-9]+)-[0-9]+(:[0-9]+)?>", "$1"); 
    460     if (!name.equals(first)) return findPattern(first, dir, nameList); 
     460    if (!name.equals(first)) { 
     461      String pattern = findPattern(first, dir, nameList); 
     462      if (pattern != null) return pattern; 
     463    } 
    461464 
    462465    return pat; 
Note: See TracChangeset for help on using the changeset viewer.