Changeset 31906


Ignore:
Timestamp:
08/21/17 10:28:54 (3 years ago)
Author:
kjdon
Message:

add an error if there was no rss response - might happen if user has commented out RSSRetrieve service in collectionConfig.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/RSSAction.java

    r29979 r31906  
    5656        Element rss_response = (Element) this.mr.process(mr_request_message);
    5757        rss_response = (Element) GSXML.getChildByTagName(rss_response, GSXML.RESPONSE_ELEM); // just the response tag
     58        if (rss_response == null) {
     59          //RSS service not available
     60          rss_response = doc.createElement(GSXML.RESPONSE_ELEM);
     61         
     62          GSXML.addError(rss_response, "RSS service not available for this collection");
     63        }
    5864        // NEED ERROR PROCESSING ?
    5965
Note: See TracChangeset for help on using the changeset viewer.