EA-81297 - NPE: ColorAndFontOptions.getPanels

This commit is contained in:
Sergey Malenkov
2016-04-22 17:07:34 +03:00
parent a4f00f5419
commit fa3aa57d95
@@ -211,7 +211,7 @@ public class FontOptions extends JPanel implements OptionsPanel{
Object source = event.getSource();
if (source instanceof FontComboBox) {
FontComboBox combo = (FontComboBox)source;
if (combo.isEnabled() && combo.getSelectedItem() != null) {
if (combo.isEnabled() && combo.isShowing() && combo.getSelectedItem() != null) {
syncFontFamilies();
}
}