Changeset 5751


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

Throw a more informative exception if the strip offsets are missing.

File:
1 edited

Legend:

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

    r5743 r5751  
    386386        long[] stripOffsets = ifds.get(i).getStripOffsets(); 
    387387        long[] previousStripOffsets = ifds.get(i - 1).getStripOffsets(); 
     388 
     389        if (stripOffsets == null || previousStripOffsets == null) { 
     390          throw new FormatException( 
     391            "Strip offsets are missing; this is an invalid file."); 
     392        } 
     393 
    388394        boolean neededAdjustment = false; 
    389395        for (int j=0; j<stripOffsets.length; j++) { 
Note: See TracChangeset for help on using the changeset viewer.