Ignore:
Timestamp:
2005-02-16T09:52:15+13:00 (19 years ago)
Author:
mdewsnip
Message:

Added check that XML file exists before attempting to parse it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/XMLTools.java

    r9037 r9051  
    102102    static public Document parseXMLFile(File xml_file)
    103103    {
     104    // No file? No point trying!
     105    if (xml_file.exists() == false) {
     106        return null;
     107    }
     108
    104109    try {
    105110        return parseXML(new FileInputStream(xml_file));
Note: See TracChangeset for help on using the changeset viewer.