schm cannot be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
96405703fa
commit
41af181267
|
@ -120,11 +120,6 @@ public class DefaultClientConnectionOperator
|
|||
}
|
||||
|
||||
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 @@ public class DefaultClientConnectionOperator
|
|||
}
|
||||
|
||||
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() +
|
||||
|
|
Loading…
Reference in New Issue