Skip to content

Commit c2bd7b5

Browse files
committed
Unit test fix.
1 parent 68dded5 commit c2bd7b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Renci.SshNet/Abstractions/ThreadAbstraction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public static void ExecuteThreadLongRunning(Action action)
3636
/// <param name="action">The action to execute.</param>
3737
public static void ExecuteThread(Action action)
3838
{
39+
if (action == null)
40+
throw new ArgumentNullException("action");
3941
#if FEATURE_THREAD_THREADPOOL
4042
System.Threading.ThreadPool.QueueUserWorkItem(o => action());
4143
#elif FEATURE_THREAD_TAP

0 commit comments

Comments
 (0)