Skip to content

Commit

Permalink
Fixed "Value cannot be null. (Parameter 'args')"
Browse files Browse the repository at this point in the history
  • Loading branch information
icnocop committed Mar 19, 2024
1 parent 147e4e2 commit 31a8a96
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,12 @@ internal XmlSchemaException(string res, string[] args, Exception innerException,

internal static string CreateMessage(string res, string[] args)
{
try
if (args == null)
{
return string.Format(res, args);
}
catch (MissingManifestResourceException)
{
return "UNKNOWN(" + res + ")";
return res;
}

return string.Format(res, args);
}

internal string GetRes
Expand Down

0 comments on commit 31a8a96

Please sign in to comment.