Skip to content

Commit d5268b4

Browse files
committed
Make sure timeoutsHolder is not null
1 parent 3480c91 commit d5268b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/main/java/org/asynchttpclient/netty/request/NettyChannelConnector.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
package org.asynchttpclient.netty.request;
1414

1515
import static org.asynchttpclient.handler.AsyncHandlerExtensionsUtils.toAsyncHandlerExtensions;
16+
import static org.asynchttpclient.util.Assertions.assertNotNull;
1617
import io.netty.bootstrap.Bootstrap;
1718
import io.netty.channel.Channel;
1819
import io.netty.channel.ChannelFuture;
@@ -43,7 +44,7 @@ public NettyChannelConnector(InetAddress localAddress, List<InetSocketAddress> r
4344
this.localAddress = localAddress != null ? new InetSocketAddress(localAddress, 0) : null;
4445
this.remoteAddresses = remoteAddresses;
4546
this.asyncHandlerExtensions = toAsyncHandlerExtensions(asyncHandler);
46-
this.timeoutsHolder = timeoutsHolder;
47+
this.timeoutsHolder = assertNotNull(timeoutsHolder, "timeoutsHolder");
4748
this.closed = closed;
4849
}
4950

0 commit comments

Comments
 (0)