Menu

#8 LanguageShuntFactory NPE if no Accept-Language HTTP header

open
nobody
Core (6)
5
2004-01-16
2004-01-16
Peter Chase
No

It seems to be assumed that every HTTP request will
contain an Accept-Language header. Although browsers
generally do send such a header, I do not think that it is
guaranteed.

LanguageShuntFactory ought to check for null and to
use the view in the default mode, in the case of null.

This is the offending line: -
String wholeHeader = request.getHeader("Accept-
Language").toLowerCase();

Discussion


Log in to post a comment.

MongoDB Logo MongoDB