changeset 4035:39a71949f1a4

7032791: TableCellRenderer.getTableCellRendererComponent() doesn't accept null JTable with GTK+ L&F Reviewed-by: rupashka
author alexp
date Mon, 04 Apr 2011 21:37:10 +0400
parents 8e21bec188ae
children 6230c920833f 1b1ae0d228d8
files src/share/classes/javax/swing/plaf/synth/SynthTableUI.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java	Mon Apr 04 19:55:10 2011 +0400
+++ b/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;
         }