Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Sep 13, 2017
2 parents 02a005f + 00fb825 commit ad1271d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MN.L10n/L10n.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static string FormatNamed(string formatString, object args = null)
var tmpVal = formatString;
foreach (var p in t.GetProperties())
{
tmpVal = tmpVal.Replace("$" + p.Name + "$", p.GetValue(args).ToString());
tmpVal = tmpVal.Replace("$" + p.Name + "$", p.GetValue(args)?.ToString());
}

return tmpVal;
Expand Down

0 comments on commit ad1271d

Please sign in to comment.