7032791: TableCellRenderer.getTableCellRendererComponent() doesn't accept null JTable with GTK+ L&F
Reviewed-by: rupashka
--- 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;
}