Skip to content

Commit 2cd64e5

Browse files
committed
avoid NPE for synchronization issues on board list
1 parent d1516f6 commit 2cd64e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/cc/arduino/packages/discoverers/serial/SerialBoardsLister.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void start(Timer timer) {
5454
timer.schedule(this, 0, 1000);
5555
}
5656

57-
public void retriggerDiscovery() {
57+
public synchronized void retriggerDiscovery() {
5858
while (BaseNoGui.packages == null) {
5959
try {
6060
Thread.sleep(1000);

0 commit comments

Comments
 (0)