Changeset 1189


Ignore:
Timestamp:
07/25/06 15:16:54 (14 years ago)
Author:
curtis
Message:

Fix NullPointerException when no TIFF comment exists.

File:
1 edited

Legend:

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

    r1134 r1189  
    9696    MetadataStore store = getMetadataStore(); 
    9797    String comment = (String) metadata.get("Comment"); 
    98     if (getMetadataStore() instanceof OMEXMLMetadataStore 
    99         && comment.indexOf("ome.xsd") != -1) { 
     98    if (store instanceof OMEXMLMetadataStore 
     99      && comment != null && comment.indexOf("ome.xsd") >= 0) 
     100    { 
    100101      OMEXMLMetadataStore xmlStore = (OMEXMLMetadataStore) store; 
    101102      xmlStore.createRoot(comment); 
Note: See TracChangeset for help on using the changeset viewer.