Jan 21, 2011, 10:07 AM
[CLOSED] [1.0] Bug ResourceManager.RegisterLocale
I know it's very strange and uncommon, but we just received a user ticket for a null reference exception
The problem is
ResourceManager.RegisterLocale doesn't check if HttpContext.Current.Request.UserLanguages is null. And if the user (dont' ask me why...) doesn't have any language setted on its browser UserLanguages is null.
To reproduce the bug just go to any browsers Internet Options and clear the preferred languages list.
Stefano
The problem is
ResourceManager.RegisterLocale doesn't check if HttpContext.Current.Request.UserLanguages is null. And if the user (dont' ask me why...) doesn't have any language setted on its browser UserLanguages is null.
To reproduce the bug just go to any browsers Internet Options and clear the preferred languages list.
Stefano
Last edited by Daniil; Jan 21, 2011 at 1:41 PM.
Reason: [CLOSED]