Skip to content

Commit

Permalink
check callInvoker is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed May 31, 2019
1 parent 8cb8d58 commit a432e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/csharp/Grpc.Core.Api/LiteClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#endregion

using System;
using Grpc.Core.Utils;

namespace Grpc.Core
{
Expand Down Expand Up @@ -47,7 +48,7 @@ protected LiteClientBase() : this(new UnimplementedCallInvoker())
/// <param name="callInvoker">The <c>CallInvoker</c> for remote call invocation.</param>
public LiteClientBase(CallInvoker callInvoker)
{
this.callInvoker = callInvoker;
this.callInvoker = GrpcPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
}

/// <summary>
Expand Down

0 comments on commit a432e2f

Please sign in to comment.