Skip to content

Commit ad1271d

Browse files
author
Chris Gårdenberg
committed
2 parents 02a005f + 00fb825 commit ad1271d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MN.L10n/L10n.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static string FormatNamed(string formatString, object args = null)
147147
var tmpVal = formatString;
148148
foreach (var p in t.GetProperties())
149149
{
150-
tmpVal = tmpVal.Replace("$" + p.Name + "$", p.GetValue(args).ToString());
150+
tmpVal = tmpVal.Replace("$" + p.Name + "$", p.GetValue(args)?.ToString());
151151
}
152152

153153
return tmpVal;

0 commit comments

Comments
 (0)