We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243fc68 commit e23bbf7Copy full SHA for e23bbf7
arduino-core/src/processing/app/BaseNoGui.java
@@ -1122,7 +1122,9 @@ static public void selectBoard(TargetBoard targetBoard) {
1122
public static void selectSerialPort(String port) {
1123
PreferencesData.set("serial.port", port);
1124
BoardPort boardPort = getDiscoveryManager().find(port, true);
1125
- PreferencesData.set("serial.port.iserial", boardPort.getPrefs().get("iserial"));
+ if (boardPort != null) {
1126
+ PreferencesData.set("serial.port.iserial", boardPort.getPrefs().get("iserial"));
1127
+ }
1128
String portFile = port;
1129
if (port.startsWith("/dev/")) {
1130
portFile = portFile.substring(5);
0 commit comments