Skip to content

Commit

Permalink
bug fixe for nil pointer
Browse files Browse the repository at this point in the history
Signed-off-by: kumarabd <[email protected]>
  • Loading branch information
kumarabd committed May 17, 2021
1 parent dce653f commit 41124a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 41124a8

Please sign in to comment.