Skip to content

Commit

Permalink
Fixed NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba committed Aug 11, 2015
1 parent 87e3479 commit d3aa76c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NuGetGallery/Services/ReportPackageRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("{", @"\{\");
}
}
Expand Down

0 comments on commit d3aa76c

Please sign in to comment.