# HG changeset patch # User alexp # Date 1301938630 -14400 # Node ID 09e49dac04d866b32a3927dfa35b27d61c1c0121 # Parent a4ce9022541e464ff4a9d99f1efc11fa7bd8ca5c 7032791: TableCellRenderer.getTableCellRendererComponent() doesn't accept null JTable with GTK+ L&F Reviewed-by: rupashka diff -r a4ce9022541e -r 09e49dac04d8 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; }