JDK-6777378 : NullPointerException in XPDefaultRenderer.paint()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10,6u14
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_vista
  • CPU: generic,x86
  • Submitted: 2008-11-27
  • Updated: 2011-01-19
  • Resolved: 2009-05-18
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.
6u14 b04Fixed 7Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
bug# 6668281 is fixed only partly, NPE is still thrown under Vista,

The following code throws NPE
            /* on Vista there are more states for sorted columns */
            if (WindowsLookAndFeel.isOnVista()) {
                SortOrder sortOrder = getColumnSortOrder(header.getTable(), column);

Another problem that "tableHeader _must_ work as a stand-alone component",
and we should fix all related bugs and make sure it works

EVALUATION In JDK 7 a part of this problem was fixed with 6523638, this fix is going to be backported to JDK 6

EVALUATION While the main problem was fixed with CR #6788484, I've found several more places where JTableHeader.getTable() is used without checking for null, this must be fixed