From 7cbde44ba8a7ac6abcd86557bc48812ad0b81e50 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 22 Jul 2018 22:09:25 +0200 Subject: [PATCH] check for non null input --- Yavsc/Services/GitClone.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Yavsc/Services/GitClone.cs b/Yavsc/Services/GitClone.cs index 8f579360..c96700f5 100644 --- a/Yavsc/Services/GitClone.cs +++ b/Yavsc/Services/GitClone.cs @@ -6,6 +6,7 @@ using Yavsc.Server.Models.IT.SourceCode; using Yavsc.Server.Models.IT; using System.Diagnostics; using System.IO; +using System; namespace Yavsc.Lib { @@ -20,6 +21,7 @@ namespace Yavsc.Lib public override void Launch(Project input) { + if (input==null) throw new ArgumentNullException("input"); WorkingDir = _repositoryRootPath; LogPath = $"{input.Name}.git-clone.ansi.log"; // TODO honor Args property