Changeset 4113


Ignore:
Timestamp:
06/13/08 06:23:11 (11 years ago)
Author:
melissa
Message:

More meaningful exceptions if pixel data is not found.

File:
1 edited

Legend:

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

    r4110 r4113  
    230230    } 
    231231 
     232    if (binDataOffsets.size() == 0) { 
     233      throw new FormatException("Pixel data not found"); 
     234    } 
     235 
    232236    status("Populating metadata"); 
    233237 
     
    249253      Integer z = omexmlMeta.getPixelsSizeZ(i, 0); 
    250254      Integer c = omexmlMeta.getPixelsSizeC(i, 0); 
     255      if (w == null || h == null || t == null || z == null | c == null) { 
     256        throw new FormatException("Image dimensions not found"); 
     257      } 
    251258      Boolean endian = omexmlMeta.getPixelsBigEndian(i, 0); 
    252259      String pixType = omexmlMeta.getPixelsPixelType(i, 0); 
Note: See TracChangeset for help on using the changeset viewer.