Skip to content

Commit

Permalink
Catch null args
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxtra committed May 31, 2019
1 parent f2680b5 commit c638ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/IPBanServiceRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
/// <param name="stopped">Func to return bool if internal service has been stopped, can be null. Parameter is timeout. Should return true if stopped, false if not.</param>
public IPBanServiceRunner(string[] args, Action<string[]> start, Action stop, Func<int, bool> stopped)
{
this.args = args;
this.args = args ?? new string[0];
start.ThrowIfNull();
stop.ThrowIfNull();
this.start = start;
Expand Down

0 comments on commit c638ad4

Please sign in to comment.