Skip to content
Snippets Groups Projects
Commit 9e16f851 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Guard against nil reports

parent 76d9645d
No related branches found
No related tags found
1 merge request!23Release
...@@ -208,8 +208,12 @@ func (c *Client) StartNetworkFollower(clientError ClientError, timeoutMS int) er ...@@ -208,8 +208,12 @@ func (c *Client) StartNetworkFollower(clientError ClientError, timeoutMS int) er
go func() { go func() {
for report := range errChan { for report := range errChan {
if report == nil {
jww.WARN.Printf("Received nil report!\n")
} else {
go clientError.Report(report.Source, report.Message, report.Trace) go clientError.Report(report.Source, report.Message, report.Trace)
} }
}
}() }()
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment