EA-32676 (NPE)

This commit is contained in:
Roman Shevchenko
2011-12-27 13:27:07 +01:00
parent 07d37a288c
commit 8d4a20f0cb
@@ -105,7 +105,9 @@ public class InitialConfigurationDialog extends DialogWrapper {
myColorSchemeComboBox.setRenderer(new ListCellRendererWrapper(myColorSchemeComboBox.getRenderer()) {
@Override
public void customize(JList list, Object value, int index, boolean selected, boolean cellHasFocus) {
setText(((EditorColorsScheme)value).getName());
if (value != null) {
setText(((EditorColorsScheme)value).getName());
}
}
});
myColorSchemeComboBox.addActionListener(new ActionListener() {