Changeset 13973


Ignore:
Timestamp:
2007-03-13T13:19: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/core/MessageRouter.java

    r13860 r13973  
    291291            if (result !=null ) {
    292292                // append the contents of the message to the mainResult - there will only be one response at this stage
    293                 mainResult.appendChild(this.doc.importNode(GSXML.getChildByTagName(result, GSXML.RESPONSE_ELEM), true));
     293                            Node res = GSXML.getChildByTagName(result, GSXML.RESPONSE_ELEM);
     294                            if (res != null){
     295                mainResult.appendChild(this.doc.importNode(res, true));
     296                }
    294297            } else {
    295298                // add in a place holder response
Note: See TracChangeset for help on using the changeset viewer.