提交 6d68d1ae 编写于 作者: D Derek Parker

cmd/trace: Fix nil pointer panic in trace subcommand

上级 1aa83e30
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册