7032791: TableCellRenderer.getTableCellRendererComponent() doesn't accept null JTable with GTK+ L&F
authoralexp
Mon, 04 Apr 2011 21:37:10 +0400
changeset 8989 09e49dac04d8
parent 8988 a4ce9022541e
child 8990 7b24333cc9bf
child 9212 2123bfe0b40b
7032791: TableCellRenderer.getTableCellRendererComponent() doesn't accept null JTable with GTK+ L&F Reviewed-by: rupashka
jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java
--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java	Mon Apr 04 19:55:10 2011 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java	Mon Apr 04 21:37:10 2011 +0400
@@ -786,9 +786,9 @@
                                                 hasFocus, row, column);
 
             setIcon(null);
-            Class columnClass = table.getColumnClass(column);
-            configureValue(value, columnClass);
-
+            if (table != null) {
+                configureValue(value, table.getColumnClass(column));
+            }
             return this;
         }