Skip to content

Commit

Permalink
Fix potential null-reference exception
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Dec 28, 2021
1 parent 61aa52c commit a9be599
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected void setupL(JComboBox<JLabel> comboBox, String property) {
new MapObjectPropertyActionListener(
m -> {
JLabel value = comboBox.getModel().getElementAt(comboBox.getSelectedIndex());
m.setValue(property, value.getText());
m.setValue(property, value != null ? value.getText(): null);
}));
}

Expand Down

0 comments on commit a9be599

Please sign in to comment.