check callInvoker is not null

pull/18705/head
Jan Tattermusch 6 years ago
parent 8cb8d58185
commit a432e2f502
  1. 3
      src/csharp/Grpc.Core.Api/LiteClientBase.cs

@ -17,6 +17,7 @@
#endregion
using System;
using Grpc.Core.Utils;
namespace Grpc.Core
{
@ -47,7 +48,7 @@ namespace Grpc.Core
/// <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>

Loading…
Cancel
Save