mirror of
https://github.com/arduino/Arduino.git
synced 2025-04-07 23:53:50 +02: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) {
|
public void setBoardPort(BoardPort boardPort) {
|
||||||
|
if (boardPort == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
setTitle(boardPort.getLabel());
|
setTitle(boardPort.getLabel());
|
||||||
this.boardPort = boardPort;
|
this.boardPort = boardPort;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user