Changeset 28858 for main


Ignore:
Timestamp:
2014-02-27T14:01:15+13:00 (10 years ago)
Author:
kjdon
Message:

need to check usrContext not null before getting lang out of it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java

    r28850 r28858  
    821821        request.setAttribute(TO_ATT, to);
    822822        request.setAttribute(TYPE_ATT, request_type);
    823         request.setAttribute(LANG_ATT, userContext._lang);
    824823        if (userContext != null) { // should we allow this??
     824          request.setAttribute(LANG_ATT, userContext._lang);
    825825          Element userContextElem = owner.createElement("userContext");
    826826          request.appendChild(userContextElem);
Note: See TracChangeset for help on using the changeset viewer.