Changeset 3296


Ignore:
Timestamp:
10/17/07 15:10:45 (12 years ago)
Author:
curtis
Message:

Print a message if no TIFF comment is found, rather than throwing an exception.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/TiffTools.java

    r3279 r3296  
    860860    Hashtable ifd = TiffTools.getFirstIFD(in); 
    861861    in.close(); 
     862    if (ifd == null) return null; 
    862863 
    863864    // extract comment 
  • trunk/utils/TiffComment.java

    r3260 r3296  
    1515    for (int i=0; i<args.length; i++) { 
    1616      String comment = TiffTools.getComment(args[i]); 
    17       if (comment != null) System.out.println(comment); 
     17      System.out.println(comment == null ? 
     18        args[i] + ": no TIFF comment found." : comment); 
    1819    } 
    1920  } 
Note: See TracChangeset for help on using the changeset viewer.