Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: Write a plugin to interact with the platform's IProxyService. Use IProxyService.getProxyData to get an IProxyData object. Call setHost with a null parameter (as is allowed in IProxyData to specify no host): the default ProxyData implemention will throw a NullPointerException. More information: The documentation for org.eclipse.core.net.proxy.IProxyData.setHost states that: "Set the host name for the proxy server of this type. If no proxy server of this type is available, the host name should be set to null." When using a ServiceTracker to get an IProxyService, proxy data is by default implemented by org.eclipse.core.internal.net.ProxyData. ProxyData.setHost first performs a length check, resulting in a NullPointerException whenever attempting to set the host to no proxy.
Created attachment 126528 [details] Patch_v01
Applied to HEAD, available in builds >N20090223-2000.