mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
If may happen that the boardPort param given to setBoardPort is still null
This commit is contained in:
parent
94d1829b87
commit
01735420ee
@ -165,6 +165,9 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener {
|
||||
}
|
||||
|
||||
public void setBoardPort(BoardPort boardPort) {
|
||||
if (boardPort == null) {
|
||||
return;
|
||||
}
|
||||
setTitle(boardPort.getLabel());
|
||||
this.boardPort = boardPort;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user