hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1181737 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java
Date Tue, 11 Oct 2011 12:09:56 GMT
Author: olegk
Date: Tue Oct 11 12:09:55 2011
New Revision: 1181737

URL: http://svn.apache.org/viewvc?rev=1181737&view=rev
Log:
HTTPCLIENT-1123: DNS resolver null parameter check

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java?rev=1181737&r1=1181736&r2=1181737&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/PoolingClientConnectionManager.java
Tue Oct 11 12:09:55 2011
@@ -106,6 +106,9 @@ public class PoolingClientConnectionMana
         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);



Mime
View raw message