Changeset 5706


Ignore:
Timestamp:
11/18/09 12:44:38 (10 years ago)
Author:
melissa
Message:

Prevent NPE if delegate reader was not initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/OMETiffReader.java

    r5654 r5706  
    167167    lastPlane = no; 
    168168    int i = info[series][no].ifd; 
    169     IFD ifd = ((MinimalTiffReader) info[series][no].reader).getIFDs().get(i); 
     169    MinimalTiffReader r = (MinimalTiffReader) info[series][no].reader; 
     170    if (r.getCurrentFile() == null) { 
     171      r.setId(info[series][no].id); 
     172    } 
     173    IFD ifd = r.getIFDs().get(i); 
    170174    RandomAccessInputStream s = 
    171175      new RandomAccessInputStream(info[series][no].id); 
Note: See TracChangeset for help on using the changeset viewer.