7169951: SwingSet2 throws NullPointerException with Nimbus L&F

Reviewed-by: abhiscxk, jdv
This commit is contained in:
Prasanta Sadhukhan 2023-03-27 10:17:27 +00:00
parent de1c12ed63
commit 0712adc2dd

View File

@ -837,6 +837,9 @@ public class SynthTabbedPaneUI extends BasicTabbedPaneUI
}
private FontMetrics getFontMetrics(Font font) {
if (font == null) {
font = tabPane.getFont();
}
return tabPane.getFontMetrics(font);
}