6668281: NullPointerException in DefaultTableCellHeaderRenderer.getColumnSortOrder()
authoridk
Mon, 21 Jul 2008 10:21:42 -0400
changeset 1283 bbfc838e2c7d
parent 1282 00a51b36c173
child 1284 39d9a711aad4
6668281: NullPointerException in DefaultTableCellHeaderRenderer.getColumnSortOrder() Reviewed-by: alexp
jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTableHeaderUI.java
--- a/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTableHeaderUI.java	Fri Jul 18 18:26:22 2008 +0400
+++ b/jdk/src/share/classes/com/sun/java/swing/plaf/windows/WindowsTableHeaderUI.java	Mon Jul 21 10:21:42 2008 -0400
@@ -124,7 +124,7 @@
                 setIcon(null);
                 sortIcon = null;
                 SortOrder sortOrder =
-                    getColumnSortOrder(header.getTable(), column);
+                    getColumnSortOrder(table, column);
                 if (sortOrder != null) {
                     switch (sortOrder) {
                     case ASCENDING: