HTTPCLIENT-1123: DNS resolver null parameter check

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2011-10-11 12:09:55 +00:00
parent 960ee2f581
commit 94dea64e63
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ public class PoolingClientConnectionManager implements ClientConnectionManager,
if (schemeRegistry == null) {
throw new IllegalArgumentException("Scheme registry may not be null");
}
if (dnsResolver == null) {
throw new IllegalArgumentException("DNS resolver may not be null");
}
this.schemeRegistry = schemeRegistry;
this.dnsResolver = dnsResolver;
this.operator = createConnectionOperator(schemeRegistry);