Changeset 13960


Ignore:
Timestamp:
2007-03-07T15:45:29+13:00 (17 years ago)
Author:
shaoqun
Message:

added a garde

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/GeneralAction.java

    r13124 r13960  
    9797    Element mr_info_response = (Element) this.mr.process(mr_info_message);
    9898
     99       
    99100    String path = GSXML.RESPONSE_ELEM;
    100101    path = GSPath.appendLink(path, GSXML.SERVICE_ELEM);
    101     Element description = (Element)this.doc.importNode(GSXML.getNodeByPath(mr_info_response, path), true);
     102   
    102103
    103     page_response.appendChild(description);
     104    Node desNode = GSXML.getNodeByPath(mr_info_response, path);
     105    if(desNode != null){
     106        page_response.appendChild((Element)this.doc.importNode(desNode, true));
     107    }
    104108
    105109    return result;
Note: See TracChangeset for help on using the changeset viewer.