From 41124a8048446430525e88c0f2276c3d0849b13e Mon Sep 17 00:00:00 2001 From: kumarabd Date: Mon, 17 May 2021 19:13:22 +0530 Subject: [PATCH] bug fixe for nil pointer Signed-off-by: kumarabd --- pkg/client/transform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/transform.go b/pkg/client/transform.go index 76e77f03..9d1535bf 100644 --- a/pkg/client/transform.go +++ b/pkg/client/transform.go @@ -206,7 +206,7 @@ func Transform(res *nighthawk_client.ExecutionResponse, typ string) ([]byte, err func constructResults(res *nighthawk_client.ExecutionResponse) ([]Result, error) { results := make([]Result, 0) - if res == nil { + if res == nil || res.Output == nil { return nil, ErrResponseNil }