Changeset 6789


Ignore:
Timestamp:
08/12/10 14:45:27 (9 years ago)
Author:
curtis
Message:

Fix for NullPointerException.

File:
1 edited

Legend:

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

    r6495 r6789  
    256256    MetadataTools.populatePixels(store, this); 
    257257    store.setImageName("Merged", 0); 
    258     for (int layer=0; layer<layerNames.length; layer++) { 
    259       store.setImageName(layerNames[layer], layer + 1); 
     258    if (layerNames != null) { 
     259      for (int layer=0; layer<layerNames.length; layer++) { 
     260        store.setImageName(layerNames[layer], layer + 1); 
     261      } 
    260262    } 
    261263  } 
Note: See TracChangeset for help on using the changeset viewer.