Changeset 3195


Ignore:
Timestamp:
09/26/07 10:52:52 (12 years ago)
Author:
melissa
Message:

Fixed NPE in get*BitLookupTable().

File:
1 edited

Legend:

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

    r3185 r3195  
    9393      int[] colorMap = 
    9494        (int[]) TiffTools.getIFDValue(ifds[0], TiffTools.COLOR_MAP); 
    95  
     95      if (colorMap == null) return null; 
    9696      byte[][] table = new byte[3][colorMap.length / 3]; 
    9797      int next = 0; 
     
    119119      int[] colorMap = 
    120120        (int[]) TiffTools.getIFDValue(ifds[0], TiffTools.COLOR_MAP); 
     121      if (colorMap == null) return null; 
    121122      short[][] table = new short[3][colorMap.length / 3]; 
    122123      int next = 0; 
Note: See TracChangeset for help on using the changeset viewer.