This commit is contained in:
anna
2012-02-24 11:19:10 +01:00
parent a1b0af30d3
commit 4d95d72aac
@@ -86,7 +86,7 @@ public class EditorComboBox extends JComboBox implements DocumentListener {
addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
final Editor editor = myEditorField.getEditor();
final Editor editor = myEditorField != null ? myEditorField.getEditor() : null;
if (editor != null) {
editor.getSelectionModel().removeSelection();
}