Changeset 4791


Ignore:
Timestamp:
02/09/09 09:00:57 (11 years ago)
Author:
melissa
Message:

Throw a more informative exception if vector data is encountered.

File:
1 edited

Legend:

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

    r4681 r4791  
    225225      int layerLen = in.readInt(); 
    226226      int layerCount = in.readShort(); 
     227 
     228      if (layerCount <= 0) { 
     229        throw new FormatException("Vector data is not supported."); 
     230      } 
     231 
    227232      int[] w = new int[layerCount]; 
    228233      int[] h = new int[layerCount]; 
Note: See TracChangeset for help on using the changeset viewer.