diff --git a/src/Orchard/Localization/Services/DefaultLocalizedStringManager.cs b/src/Orchard/Localization/Services/DefaultLocalizedStringManager.cs index d4245f125..59ad882e0 100644 --- a/src/Orchard/Localization/Services/DefaultLocalizedStringManager.cs +++ b/src/Orchard/Localization/Services/DefaultLocalizedStringManager.cs @@ -51,6 +51,7 @@ namespace Orchard.Localization.Services { public FormatForScope GetLocalizedString(IEnumerable scopes, string text, string cultureName) { var culture = LoadCulture(cultureName); + text = text ?? string.Empty; // prevent NREs with this string foreach (var scope in scopes) { string scopedKey = (scope + "|" + text).ToLowerInvariant(); if (culture.Translations.ContainsKey(scopedKey)) {