Changeset 31906

Show
Ignore:
Timestamp:
21.08.2017 10:28:54 (5 weeks 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

Files:
1 modified

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