File tree 1 file changed +4
-2
lines changed
arduino-core/src/cc/arduino/packages/discoverers 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 31
31
32
32
import cc .arduino .packages .BoardPort ;
33
33
import cc .arduino .packages .Discovery ;
34
- import cc .arduino .packages .discoverers .network .* ;
34
+ import cc .arduino .packages .discoverers .network .NetworkChecker ;
35
35
import processing .app .BaseNoGui ;
36
36
import processing .app .helpers .NetUtils ;
37
37
import processing .app .helpers .PreferencesMap ;
@@ -141,7 +141,9 @@ public void serviceResolved(ServiceEvent serviceEvent) {
141
141
String label = name + " at " + address ;
142
142
if (board != null ) {
143
143
String boardName = BaseNoGui .getPlatform ().resolveDeviceByBoardID (BaseNoGui .packages , board );
144
- label += " (" + boardName + ")" ;
144
+ if (boardName != null ) {
145
+ label += " (" + boardName + ")" ;
146
+ }
145
147
}
146
148
147
149
BoardPort port = new BoardPort ();
You can’t perform that action at this time.
0 commit comments