Add precondition checking not null

This commit is contained in:
Max Lambrecht 2018-06-01 16:14:22 -03:00
parent 618cc0e022
commit 00ad2f81c1
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class SpiffeEndpointChannelBuilder {
* @param channelBuilder
*/
private static void configureNativeSocketChannel(NettyChannelBuilder channelBuilder) {
checkNotNull(channelBuilder, "Channel builder is Null");
if (SystemUtils.IS_OS_LINUX) {
channelBuilder.eventLoopGroup(new EpollEventLoopGroup())
.channelType(EpollDomainSocketChannel.class);