Changeset 6800


Ignore:
Timestamp:
2004-02-13T12:00:23+13:00 (20 years ago)
Author:
kjdon
Message:

added in a check for null that was throwing an exception when exit GLI with out saving changed format statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java

    r6770 r6800  
    539539            String token = tokenizer.nextToken();
    540540            if(type == METADATA || type == METADATUM) {
    541             ElementWrapper element_wrapper = Gatherer.c_man.getCollection().msm.getElement(token);
     541            ElementWrapper element_wrapper = null;
     542            // if you click on exit before saving and format statements have changed, this could be null
     543            if (Gatherer.c_man.getCollection() != null) {
     544                element_wrapper = Gatherer.c_man.getCollection().msm.getElement(token);
     545            }
    542546            if(element_wrapper != null) {
    543547                text.append(element_wrapper.toString());
Note: See TracChangeset for help on using the changeset viewer.