1
0
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:
Federico Fissore 2015-09-17 16:52:11 +02:00
parent 94d1829b87
commit 01735420ee

View File

@ -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;
}