From c2bd7b5171d2ccce0780774f283effd2bf13b84d Mon Sep 17 00:00:00 2001 From: Artem Gayardo-Matrosov Date: Fri, 3 Mar 2017 15:39:31 +0100 Subject: [PATCH] Unit test fix. --- src/Renci.SshNet/Abstractions/ThreadAbstraction.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Renci.SshNet/Abstractions/ThreadAbstraction.cs b/src/Renci.SshNet/Abstractions/ThreadAbstraction.cs index f1ed202a..fe6e3e21 100644 --- a/src/Renci.SshNet/Abstractions/ThreadAbstraction.cs +++ b/src/Renci.SshNet/Abstractions/ThreadAbstraction.cs @@ -36,6 +36,8 @@ namespace Renci.SshNet.Abstractions /// The action to execute. public static void ExecuteThread(Action action) { + if (action == null) + throw new ArgumentNullException("action"); #if FEATURE_THREAD_THREADPOOL System.Threading.ThreadPool.QueueUserWorkItem(o => action()); #elif FEATURE_THREAD_TAP