Skip to content

Commit 3d79612

Browse files
author
Stephane Landelle
committed
Fix NPE
1 parent a0a83a6 commit 3d79612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyConnectionsPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public NettyConnectionsPool(int maxTotalConnections, int maxConnectionPerHost, l
6060
this.sslConnectionPoolEnabled = sslConnectionPoolEnabled;
6161
this.maxIdleTime = maxIdleTime;
6262
this.maxConnectionLifeTimeInMs = maxConnectionLifeTimeInMs;
63-
this.idleConnectionDetector.schedule(new IdleChannelDetector(), maxIdleTime, maxIdleTime);
6463
this.idleConnectionDetector = idleConnectionDetector;
64+
this.idleConnectionDetector.schedule(new IdleChannelDetector(), maxIdleTime, maxIdleTime);
6565
}
6666

6767
private static class IdleChannel {

0 commit comments

Comments
 (0)