Skip to content

Commit 5ad1da5

Browse files
icnocopmconnew
authored andcommitted
Fixed "Value cannot be null. (Parameter 'args')"
Fixes #5452
1 parent cc33e78 commit 5ad1da5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,12 @@ internal XmlSchemaException(string res, string[] args, Exception innerException,
9999

100100
internal static string CreateMessage(string res, string[] args)
101101
{
102-
try
102+
if (args == null)
103103
{
104-
return string.Format(res, args);
105-
}
106-
catch (MissingManifestResourceException)
107-
{
108-
return "UNKNOWN(" + res + ")";
104+
return res;
109105
}
106+
107+
return string.Format(res, args);
110108
}
111109

112110
internal string GetRes

0 commit comments

Comments
 (0)