Permalink
Browse files

fix for failing functional tests

  • Loading branch information...
1 parent 101462a commit a44915c3dfd5bbed93d10325a37d85a1a1435a8b @graemerocher graemerocher committed Feb 27, 2013
@@ -281,8 +281,11 @@ public Locale getLocale() {
}
// Expose current RequestAttributes to current thread.
previousRequestAttributes = RequestContextHolder.currentRequestAttributes();
+ GrailsWebRequest previousWebRequest = GrailsWebRequest.lookup(request);
requestAttributes = new GrailsWebRequest(processedRequest, response, getServletContext());
- copyParamsFromPreviousRequest(previousRequestAttributes, requestAttributes);
+ if( previousWebRequest != null) {
+ copyParamsFromPreviousRequest(previousWebRequest, requestAttributes);
+ }
// Update the current web request.
WebUtils.storeGrailsWebRequest(requestAttributes);

0 comments on commit a44915c

Please sign in to comment.