Skip to content

Commit

Permalink
Merge pull request #109 from layer5io/kumarabd/feature/fix
Browse files Browse the repository at this point in the history
bug fixe for nil pointer
  • Loading branch information
kumarabd authored May 17, 2021
2 parents dce653f + 41124a8 commit 1dda302
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 1dda302

Please sign in to comment.