From bc02cd7aed74a7b88f918f10ca36a2c031e61ad3 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Sat, 28 Jun 2014 15:14:14 -0500 Subject: [PATCH] fix fsharp/FAKE#481 null check in NugetHelper --- src/app/FakeLib/NuGet/NugetHelper.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/FakeLib/NuGet/NugetHelper.fs b/src/app/FakeLib/NuGet/NugetHelper.fs index 8a32c456c2f..9c9410877a1 100644 --- a/src/app/FakeLib/NuGet/NugetHelper.fs +++ b/src/app/FakeLib/NuGet/NugetHelper.fs @@ -171,7 +171,9 @@ let private createNuspecFile parameters nuSpec = if isNullOrEmpty notEncodedText then "" else XText(notEncodedText).ToString() - let toSingleLine (text:string) = text.Replace("\r", "").Replace("\n", "").Replace(" ", " ") + let toSingleLine (text:string) = + if text = null then null + else text.Replace("\r", "").Replace("\n", "").Replace(" ", " ") let replacements = [ "@build.number@", parameters.Version