Changeset 4419


Ignore:
Timestamp:
2003-05-30T12:43:44+12:00 (21 years ago)
Author:
jmt12
Message:

2030092: Furthermore it doesn't throw an NPE during GLI exit due to it trying to look something up in a non-existant metadata set manager.

File:
1 edited

Legend:

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

    r4417 r4419  
    847847        Metadata m1 = (Metadata) o1;
    848848        Metadata m2 = (Metadata) o2;
    849                 ///ystem.err.println("MSMUtils.compare(" + m1 + ", " + m2 + ") = ");
     849        ///ystem.err.println("MSMUtils.compare(" + m1 + ", " + m2 + ") = ");
    850850        ElementWrapper e1 = m1.getElement();
    851851        ElementWrapper e2 = m2.getElement();
    852                 // First we compare the namespaces
     852        // First we compare the namespaces
    853853        result = e1.getNamespace().compareTo(e2.getNamespace());
    854         if(result == 0) {
     854        if(result == 0 && Gatherer.c_man != null && Gatherer.c_man.ready() && e1.getNamespace() != null) {
    855855        // Now, given both elements are in the same set, we compare the element ordering using methods in MetadataSet
    856856        MetadataSet set = Gatherer.c_man.getCollection().msm.getSet(e1.getNamespace());
Note: See TracChangeset for help on using the changeset viewer.