1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00

Fix indexOutOfBounds when no Arduino boards registered.

Change-Id: I9466405bd6b12d795ec6797da7b039aabd851b58
This commit is contained in:
Doug Schaefer 2017-06-12 11:14:09 -04:00
parent c24e5d17b3
commit 4995ccbe24

View file

@ -199,6 +199,10 @@ public class ArduinoTerminalSettingsPage extends AbstractSettingsPage {
}
void updatePortLabel() {
if (boardCombo.getSelectionIndex() < 0) {
return;
}
String boardName = boardCombo.getItem(boardCombo.getSelectionIndex());
IRemoteConnection connection = arduinoType.getConnection(boardName);
if (connection != null) {