StrataFrame Forum

NullReferenceException when a LocalizationKey is missing from XML file

http://forum.strataframe.net/Topic662.aspx

By Tom Wilkinson - 3/19/2006

I accidently misspelled a LocalizationKey in a label control and did not realize it and was getting a NullReferenceException.  I think I should of got a KeyNotFoundException.

It also happened when I used the MicroFour.StrataFrame.UI.Localization.RetrieveTextValue(TextValueKey) with a key that was not in the XML file.  I attached the stack trace.

No big problem, but I though you might want to know.

Tom Wilkinson

By Trent L. Taylor - 3/20/2006

Thanks for the input.  I have just made the change and it will be available in the next update. Wink