Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5086348

URL.openConnection(Proxy.NO_PROXY) throws NULLPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0u1
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      x86
    • OS:
      windows_2000

      Backports

        Description

        URL.openConnection(Proxy.NO_PROXY) throws NULLPointerException.

        The implementation of URL.openConnection(Proxy p) does not check whether the InetSocketAddress returned by p.address() could be null if user passes Proxy.NO_PROXY. This will result NULLPointerException when people tries to use the API.
        ###@###.### 2004-08-12

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jccollet Jean-Christophe Collet (Inactive)
                Reporter:
                xlu Xiaobin Lu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: