Changeset 30541


Ignore:
Timestamp:
2016-05-17T15:52:16+12:00 (8 years ago)
Author:
Georgiy Litvinov
Message:

Fixed CollectionGroups non-existent collections check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/CollectionGroups.java

    r30540 r30541  
    136136                    // Check whether collection from current view exists in message router response
    137137                    Element checkedCollection = GSXML.getNamedElement(mr_collection_list, GSXML.COLLECTION_ELEM,GSXML.NAME_ATT, collection_name);
    138                     //Set position value
    139                     checkedCollection.setAttribute(GSXML.POSITION_ATT, String.valueOf(i));
    140138                    if (checkedCollection != null) {
     139                        //Set position value
     140                        checkedCollection.setAttribute(GSXML.POSITION_ATT, String.valueOf(i));
    141141                        // Add collection to response
    142142                        result_collection_list.appendChild(doc.importNode(checkedCollection, true));
Note: See TracChangeset for help on using the changeset viewer.