JDK-6856856 : NPE in HTTP protocol handler logging
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-02
  • Updated: 2010-11-04
  • Resolved: 2009-07-17
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.
7 b66Fixed
Related Reports
Relates :  
6811297 added:

2000          if (logger.isLoggable(Level.FINER)) {
2001              logger.finer("Server Authentication for " + authhdr.toString() +" returned " + ret.toString());
2002          }

Here, ret may be null. Also at line 1870-2, 

Several JSN SQE tests failed due to this problem.

EVALUATION Right! A silly oversight. Will fix as soon as possible.

SUGGESTED FIX Remove .toString().