Changeset 30541

Show
Ignore:
Timestamp:
17.05.2016 15:52:16 (4 years ago)
Author:
litvinovg
Message:

Fixed CollectionGroups? non-existent collections check

Files:
1 modified

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));