go-ios
go-ios copied to clipboard
DeviceInfoService.ProcessList() panic
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