NullReferenceException when a LocalizationKey is missing from XML file


NullReferenceException when a LocalizationKey is missing from XML file...
Author
Message
Tom Wilkinson
Tom Wilkinson
StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)StrataFrame Beginner (4 reputation)
Group: Forum Members
Posts: 4, Visits: 48
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


Attachments
Localization Error.txt (132 views, 1.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for the input.  I have just made the change and it will be available in the next update. Wink
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search