go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

DeviceInfoService.ProcessList() panic

Open sandix90 opened this issue 1 year ago • 0 comments
trafficstars

Hello!

Describe the bug go-ios:1.0.133 When DeviceInfoService.ProcessList() method is called (ios/instruments/instruments_deviceinfo.go:24) and err is occurred there is a panic may happened, because after d.channel.MethodCall("runningProcesses") call the err is not checked and then resp.Payload[0] is used. If err != nil resp will be nil.

Expected behavior The err must be checked and returned if not nil to avoid panic

sandix90 avatar Aug 02 '24 15:08 sandix90