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

SystemDefaultRoutePlanner: Possible null pointer dereference

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.5.2
    • 4.5.3
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment