Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed stack overflow when repository didn't use X.509...oops

  • Loading branch information...
commit 1f26d80ea001f5c0e0ea2e58e5a6d3385558e70e 1 parent c2ae469
@jdcasey authored
View
10 core/src/main/java/org/commonjava/aprox/core/rest/util/RepoSSLSocketFactory.java
@@ -40,7 +40,15 @@ public Socket createSocket( final HttpParams params )
if ( repo != null )
{
- return getRepoSSLFactory( repo ).createSocket( params );
+ final SSLSocketFactory fac = getRepoSSLFactory( repo );
+ if ( fac != null )
+ {
+ return fac.createSocket( params );
+ }
+ else
+ {
+ return super.createSocket( params );
+ }
}
else
{
Please sign in to comment.
Something went wrong with that request. Please try again.