JDK-6267930 : com.sun.deploy.net.proxy.WNetscape4ProxyConfig.getNSVersion can NPE
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 5.0,5.0u3
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows,windows_xp
  • CPU: x86
  • Submitted: 2005-05-10
  • Updated: 2010-04-04
  • Resolved: 2005-06-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u6Fixed 6 b42Fixed
Related Reports
Duplicate :  
Description
customer reporting a NPE from :
 at com.sun.deploy.net.proxy.WNetscape4ProxyConfig.getNSVersion(Unknown Source)
at com.sun.deploy.net.proxy.WNetscape4ProxyConfig.getBrowserProxyInfo(Unknown Source)
at com.sun.deploy.net.proxy.WDefaultBrowserProxyConfig.getBrowserProxyInfo(Unknown Source)
at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
at com.sun.javaws.Main.initializeExecutionEnvironment(Unknown Source)
at com.sun.javaws.Main.main(Unknown Source)

looks like getNSVersion() relys on windows registry entry:
(HKEY_LOCAL_MACHINE, "Software\\Netscape\\Netscape Navigator")
and will crash if it is not set.
###@###.### 2005-05-10 14:00:54 GMT

Comments
EVALUATION The is caused becuase there is no check in the code to see if a valid Regitry key was actually retrieved. ###@###.### 2005-06-10 12:11:23 GMT
10-06-2005

SUGGESTED FIX http://j2se.east/www/webrevs/aw158418/6267930/webrev/ ###@###.### 2005-06-10 12:11:23 GMT
10-06-2005