mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 02:35:37 +02:00
Fix another IndexOutOfBounds exception.
This commit is contained in:
parent
4995ccbe24
commit
bfe45e8c74
1 changed files with 4 additions and 0 deletions
|
@ -263,6 +263,10 @@ public class ArduinoTerminalSettingsPage extends AbstractSettingsPage {
|
|||
|
||||
@Override
|
||||
public void saveSettings() {
|
||||
if (boardCombo.getSelectionIndex() < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
settings.setBoardName(boardCombo.getItem(boardCombo.getSelectionIndex()));
|
||||
settings.setPortName(portNameLabel.getText());
|
||||
settings.setBaudRate(BaudRate.fromStringIndex(baudRateCombo.getSelectionIndex()));
|
||||
|
|
Loading…
Add table
Reference in a new issue