Changeset 28858

Show
Ignore:
Timestamp:
27.02.2014 14:01:15 (6 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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);