Skip to content

Commit 0173542

Browse files
author
Federico Fissore
committed
If may happen that the boardPort param given to setBoardPort is still null
1 parent 94d1829 commit 0173542

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/AbstractMonitor.java

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ public BoardPort getBoardPort() {
165165
}
166166

167167
public void setBoardPort(BoardPort boardPort) {
168+
if (boardPort == null) {
169+
return;
170+
}
168171
setTitle(boardPort.getLabel());
169172
this.boardPort = boardPort;
170173
}

0 commit comments

Comments
 (0)