Changeset 2807


Ignore:
Timestamp:
05/23/07 14:38:18 (13 years ago)
Author:
curtis
Message:

Fix bug in WiscScan OME-TIFF hack.

File:
1 edited

Legend:

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

    r2695 r2807  
    118118      // but with SizeZ and SizeT equal to 1. 
    119119 
    120       String s = 
    121         (String) TiffTools.getIFDValue(ifds[1], TiffTools.IMAGE_DESCRIPTION); 
     120      String s = null; 
     121      if (ifds.length > 1) { 
     122        s = (String) 
     123          TiffTools.getIFDValue(ifds[1], TiffTools.IMAGE_DESCRIPTION); 
     124      } 
    122125      boolean isWiscScan = s != null && s.indexOf("ome.xsd") != -1; 
    123126 
Note: See TracChangeset for help on using the changeset viewer.