Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1553

SSLSocketFactory null argument exception in HttpClientBuilder.build() if system properties are not used.

    XMLWordPrintableJSON

Details

    Description

      The outer systemProperties check is unnecessary and causes it to fail.

      if (systemProperties) {
      if (systemProperties)

      { sslSocketFactory = new SSLConnectionSocketFactory( (SSLSocketFactory) SSLCertificateSocketFactory.getDefault(0), supportedProtocols, supportedCipherSuites, hostnameVerifier); }

      else

      { sslSocketFactory = new SSLConnectionSocketFactory( (SSLSocketFactory) SSLCertificateSocketFactory.getDefault(0), hostnameVerifier); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            kathampy Kurian Thampy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: