mirror of https://github.com/grpc/grpc-java.git
netty: check for null protocol negotiator in NettyChannelBuilder
This commit is contained in:
parent
ad47eee4d3
commit
21c34d7862
|
|
@ -545,7 +545,7 @@ public final class NettyChannelBuilder
|
||||||
int flowControlWindow, int maxMessageSize, int maxHeaderListSize,
|
int flowControlWindow, int maxMessageSize, int maxHeaderListSize,
|
||||||
long keepAliveTimeNanos, long keepAliveTimeoutNanos, boolean keepAliveWithoutCalls,
|
long keepAliveTimeNanos, long keepAliveTimeoutNanos, boolean keepAliveWithoutCalls,
|
||||||
TransportTracer.Factory transportTracerFactory, LocalSocketPicker localSocketPicker) {
|
TransportTracer.Factory transportTracerFactory, LocalSocketPicker localSocketPicker) {
|
||||||
this.protocolNegotiator = protocolNegotiator;
|
this.protocolNegotiator = checkNotNull(protocolNegotiator, "protocolNegotiator");
|
||||||
this.channelFactory = channelFactory;
|
this.channelFactory = channelFactory;
|
||||||
this.channelOptions = new HashMap<ChannelOption<?>, Object>(channelOptions);
|
this.channelOptions = new HashMap<ChannelOption<?>, Object>(channelOptions);
|
||||||
this.groupPool = groupPool;
|
this.groupPool = groupPool;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue