diff --git a/src/NuGetGallery/Services/ReportPackageRequest.cs b/src/NuGetGallery/Services/ReportPackageRequest.cs index c6bba8b160..d390b10e02 100644 --- a/src/NuGetGallery/Services/ReportPackageRequest.cs +++ b/src/NuGetGallery/Services/ReportPackageRequest.cs @@ -64,6 +64,10 @@ private static void Substitute(StringBuilder src, string input, string replaceme private static string Escape(string s) { + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } return s.Replace("{", @"\{\"); } }