mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
cmd/trace: Fix nil pointer panic in trace subcommand
This commit is contained in:
@ -186,6 +186,9 @@ starts and attaches to it, and enables you to immediately begin debugging your p
|
||||
for {
|
||||
select {
|
||||
case state := <-stateChan:
|
||||
if state == nil {
|
||||
return 0
|
||||
}
|
||||
if state.Err != nil {
|
||||
fmt.Fprintln(os.Stderr, state.Err)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user