File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
arduino-core/src/cc/arduino/packages/discoverers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3131
3232import cc .arduino .packages .BoardPort ;
3333import cc .arduino .packages .Discovery ;
34- import cc .arduino .packages .discoverers .network .* ;
34+ import cc .arduino .packages .discoverers .network .NetworkChecker ;
3535import processing .app .BaseNoGui ;
3636import processing .app .helpers .NetUtils ;
3737import processing .app .helpers .PreferencesMap ;
@@ -141,7 +141,9 @@ public void serviceResolved(ServiceEvent serviceEvent) {
141141 String label = name + " at " + address ;
142142 if (board != null ) {
143143 String boardName = BaseNoGui .getPlatform ().resolveDeviceByBoardID (BaseNoGui .packages , board );
144- label += " (" + boardName + ")" ;
144+ if (boardName != null ) {
145+ label += " (" + boardName + ")" ;
146+ }
145147 }
146148
147149 BoardPort port = new BoardPort ();
You can’t perform that action at this time.
0 commit comments