diff --git a/src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs b/src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs index b0e20dccf76..83f6ffebab9 100644 --- a/src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs +++ b/src/dotnet-svcutil/lib/src/FrameworkFork/Microsoft.Xml/Xml/schema/XmlSchemaException.cs @@ -99,6 +99,11 @@ internal XmlSchemaException(string res, string[] args, Exception innerException, internal static string CreateMessage(string res, string[] args) { + if (args == null) + { + return res; + } + try { return string.Format(res, args);