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

URL.openConnection(Proxy.NO_PROXY) throws NULLPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0u1
    • 5.0
    • core-libs
    • 01
    • x86
    • windows_2000

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: