Alle mercoledì 01 febbraio 2012, Martin Grigorov ha scritto:
> I guess lingue is null here, i.e. there is no "Accept-Language" header.
> >> NPEs are easy to debug ;-)
Thank you very much,
I solved it by putting a
if (lingua==null) { lingua = "0"; }
before the line with NPE:
if (lingua.indexOf("en-tt")>-1) getSession().setLocale(....
I don't know if this solution is nice to code, but it work's, and this
is enought for me! :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]