You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2008/04/30 02:10:36 UTC
svn commit: r652193 -
/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Author: sebb
Date: Tue Apr 29 17:10:36 2008
New Revision: 652193
URL: http://svn.apache.org/viewvc?rev=652193&view=rev
Log:
schm cannot be null
Modified:
httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java?rev=652193&r1=652192&r2=652193&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java (original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java Tue Apr 29 17:10:36 2008
@@ -120,11 +120,6 @@
}
final Scheme schm = schemeRegistry.getScheme(target.getSchemeName());
- if (schm == null) {
- throw new IllegalArgumentException
- ("Unknown scheme '" + target.getSchemeName() +
- "' in target host.");
- }
final SocketFactory sf = schm.getSocketFactory();
Socket sock = sf.createSocket();
@@ -169,11 +164,6 @@
}
final Scheme schm = schemeRegistry.getScheme(target.getSchemeName());
- if (schm == null) {
- throw new IllegalArgumentException
- ("Unknown scheme '" + target.getSchemeName() +
- "' in target host.");
- }
if (!(schm.getSocketFactory() instanceof LayeredSocketFactory)) {
throw new IllegalArgumentException
("Target scheme (" + schm.getName() +