Don't throw if LocalizedString is null
This commit is contained in:
parent
f55f32fdb8
commit
0b9b99e617
|
|
@ -45,7 +45,7 @@ namespace Microsoft.Extensions.Localization
|
||||||
|
|
||||||
public static implicit operator string(LocalizedString localizedString)
|
public static implicit operator string(LocalizedString localizedString)
|
||||||
{
|
{
|
||||||
return localizedString.Value;
|
return localizedString?.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue