From 58dc5210df1bc62d82e2328ffce6dddbc1959e90 Mon Sep 17 00:00:00 2001 From: Loic Denuziere Date: Thu, 12 Nov 2015 10:23:34 +0100 Subject: [PATCH] Fix #489: NullReferenceException in WebSharperTask on mono --- src/compiler/WebSharper.MSBuild/WebSharperTask.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/WebSharper.MSBuild/WebSharperTask.fs b/src/compiler/WebSharper.MSBuild/WebSharperTask.fs index 3da8365c8..ceb6e7e6a 100644 --- a/src/compiler/WebSharper.MSBuild/WebSharperTask.fs +++ b/src/compiler/WebSharper.MSBuild/WebSharperTask.fs @@ -428,9 +428,9 @@ type WebSharperTask() = settings.Command <- this.Command settings.Configuration <- NotNull "Release" this.Configuration settings.DocumentationFile <- NotNull "" this.DocumentationFile - settings.EmbeddedResources <- NotNull [||] (this.EmbeddedResources |> Array.map (fun i -> i.ItemSpec)) - settings.ItemInput <- NotNull [||] (this.ItemInput |> Array.map (fun i -> i.ItemSpec)) - settings.ItemOutput <- NotNull [||] (this.ItemOutput |> Array.map (fun i -> i.ItemSpec)) + settings.EmbeddedResources <- (NotNull [||] this.EmbeddedResources) |> Array.map (fun i -> i.ItemSpec) + settings.ItemInput <- (NotNull [||] this.ItemInput) |> Array.map (fun i -> i.ItemSpec) + settings.ItemOutput <- (NotNull [||] this.ItemOutput) |> Array.map (fun i -> i.ItemSpec) settings.KeyOriginatorFile <- NotNull "" this.KeyOriginatorFile settings.Log <- this.Log settings.MSBuildProjectDirectory <- NotNull "." this.MSBuildProjectDirectory