7169951: SwingSet2 throws NullPointerException with Nimbus L&F
Reviewed-by: abhiscxk, jdv
This commit is contained in:
parent
de1c12ed63
commit
0712adc2dd
@ -837,6 +837,9 @@ public class SynthTabbedPaneUI extends BasicTabbedPaneUI
|
||||
}
|
||||
|
||||
private FontMetrics getFontMetrics(Font font) {
|
||||
if (font == null) {
|
||||
font = tabPane.getFont();
|
||||
}
|
||||
return tabPane.getFontMetrics(font);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user