Don't throw if LocalizedString is null

This commit is contained in:
Pranav K 2015-12-17 20:56:33 -08:00
parent f55f32fdb8
commit 0b9b99e617
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace Microsoft.Extensions.Localization
public static implicit operator string(LocalizedString localizedString)
{
return localizedString.Value;
return localizedString?.Value;
}
/// <summary>