mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fix indexOutOfBounds when no Arduino boards registered.
Change-Id: I9466405bd6b12d795ec6797da7b039aabd851b58
This commit is contained in:
parent
c24e5d17b3
commit
4995ccbe24
1 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,10 @@ public class ArduinoTerminalSettingsPage extends AbstractSettingsPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
void updatePortLabel() {
|
void updatePortLabel() {
|
||||||
|
if (boardCombo.getSelectionIndex() < 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String boardName = boardCombo.getItem(boardCombo.getSelectionIndex());
|
String boardName = boardCombo.getItem(boardCombo.getSelectionIndex());
|
||||||
IRemoteConnection connection = arduinoType.getConnection(boardName);
|
IRemoteConnection connection = arduinoType.getConnection(boardName);
|
||||||
if (connection != null) {
|
if (connection != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue