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

SystemDefaultRoutePlanner: Possible null pointer dereference

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.2
    • Fix Version/s: 4.5.3
    • Component/s: None
    • Labels:
      None

      Description

      We're using the SoapUI Maven plugin 5.2.1 and have found that it sets the default proxy selector for https://docs.oracle.com/javase/7/docs/api/java/net/ProxySelector.html to null. According to JavaDoc this is legal ("[...] unsets the proxy selector"), but now getDefault() returns null.

      As a consequence a NullPointerException can be observed:

      SystemDefaultRoutePlanner.java:79
      	List proxies = this.proxySelector.select(targetURI);
      

        Activity

        Show
        olegk Oleg Kalnichevski added a comment - Fixed by https://github.com/apache/httpclient/commit/f779a4b65d04ef3ad8ab766d041e36eb4da0b564 Oleg

          People

          • Assignee:
            Unassigned
            Reporter:
            jengehau Jan Engehausen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development