URL.openConnection(Proxy.NO_PROXY) throws NULLPointerException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0u1
    • Affects Version/s: 5.0
    • Component/s: 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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: