Changeset 12713


Ignore:
Timestamp:
2006-09-08T13:45:59+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fix for null pointer exception in some cases when editing metadata with multiple files are selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataXMLFile.java

    r12039 r12713  
    490490        }
    491491        // Otherwise replace the old value with the new value
    492         else {
     492        // Ensure metadata_element_to_edit isn't null (may occur when multiple files are selected)
     493        else if (metadata_element_to_edit != null) {
    493494        XMLTools.setElementTextValue(metadata_element_to_edit, new_metadata_value_string);
    494495        }
Note: See TracChangeset for help on using the changeset viewer.