Closed advisoft closed 1 year ago
panic: runtime error: index out of range [0] with length 0
goroutine 883 [running]:\ngo.bug.st/serial/enumerator.retrievePortDetailsFromDevInfo(0xc00011f3b0, 0xc000121560, 0x5, 0x0) /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:351 +0x365 go.bug.st/serial/enumerator.nativeGetDetailedPortsList(0x0, 0x0, 0x0, 0x0, 0x0) /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/usb_windows.go:299 +0x1b1 go.bug.st/serial/enumerator.GetDetailedPortsList(...) /go/pkg/mod/go.bug.st/serial@v1.3.5/enumerator/enumerator.go:31
I suspect N needs a zero check on line 350:
We have received multiple reports of this panic from users of the serial-discovery tool (via Arduino CLI + Arduino IDE):
panic: runtime error: index out of range [0] with length 0
I suspect N needs a zero check on line 350:![image](https://user-images.githubusercontent.com/11500738/167532184-9918c7a1-495c-4d26-9bdc-fb42034b63ed.png)