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);
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: