Skip to content

Commit

Permalink
Merge pull request #482 from ctaggart/fix481
Browse files Browse the repository at this point in the history
fix #481 null check in NugetHelper
  • Loading branch information
forki committed Jun 29, 2014
2 parents 25720ad + bc02cd7 commit d13fde6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/FakeLib/NuGet/NugetHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d13fde6

Please sign in to comment.