Changeset 6398


Ignore:
Timestamp:
2004-01-09T15:22:24+13:00 (20 years ago)
Author:
jmt12
Message:

For some ungodly reason getMetadata was occasionally being called with a filename of null, which while not fatal was weally, weally annoying, so I'll check for it and ignore it (rather than throw a half dozen exceptions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/GDMDocument.java

    r6202 r6398  
    258258    public ArrayList getMetadata(String filename, boolean remove, ArrayList metadatum_so_far, File file, boolean append_folder_level, boolean purge) {
    259259    Gatherer.println("Get metadata for " + filename);
     260    // Of course null is not an acceptable filename
     261    if(filename == null) {
     262        return metadatum_so_far;
     263    }
    260264    Gatherer.println("append_folder_level: " + append_folder_level);
    261265    Gatherer.println("purge: " + purge);
Note: See TracChangeset for help on using the changeset viewer.