RE: RE: default value for Accept-Language?
"Schnitzer, Jeff" <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
Fixed in CVS. Thanks for the report! Jeff Schnitzer [email protected] -----Original Message----- From: Thompson, Kris [mailto:[email protected]] Sent: Thursday, August 14, 2003 10:11 AM To: Mav-User (E-mail) Subject: [Mav-user] RE: default value for Accept-Language? Sorry, hit the return key by accident and it sent before I was done.... This line of code, String wholeHeader = request.getHeader("Accept-Language").toLowerCase(); is the problem, it blows a NullPointer because the value is null because there isn't a value for Accept-Language Still, nice framework Kris Thompson > -----Original Message----- > From: Thompson, Kris > Sent: Thursday, August 14, 2003 11:09 AM > To: Mav-User (E-mail) > Subject: default value for Accept-Language? > > I have a suggestion if the browser does not provide an > Accept-Language variable then give a default value.... which > would be better then the 500 error I get. > > This probably never happens for the majority if not all > browser out there but I ran into this will trying to create a > JMeter script to load test Maverick. I was able to fix the > issue by adding an Http Header Manager to JMeter. > > The mod would be made in LanguageShuntFactory.getView in the > first line of code... > > >