United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6777378 NullPointerException in XPDefaultRenderer.paint()
JDK-6777378 : NullPointerException in XPDefaultRenderer.paint()

Details
Type:
Bug
Submit Date:
2008-11-27
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2009-05-18
Component:
client-libs
OS:
windows_vista,generic
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10,6u14
Fixed Versions:
6u14 (b04)

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
bug# 6668281 is fixed only partly, NPE is still thrown under Vista,
http://bugs.sun.com/view_bug.do?bug_id=6668281

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

                                    

Comments
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
                                     
2009-03-04
EVALUATION

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



Hardware and Software, Engineered to Work Together