From 9e16f851b3c34a3f9872214b791585e4909bff45 Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Mon, 14 Jun 2021 21:11:21 +0000
Subject: [PATCH] Guard against nil reports

---
 bindings/client.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bindings/client.go b/bindings/client.go
index aaaf1ac8f..543f647e7 100644
--- a/bindings/client.go
+++ b/bindings/client.go
@@ -208,7 +208,11 @@ func (c *Client) StartNetworkFollower(clientError ClientError, timeoutMS int) er
 
 	go func() {
 		for report := range errChan {
-			go clientError.Report(report.Source, report.Message, report.Trace)
+			if report == nil {
+				jww.WARN.Printf("Received nil report!\n")
+			} else {
+				go clientError.Report(report.Source, report.Message, report.Trace)
+			}
 		}
 	}()
 	return nil
-- 
GitLab