Skip to content

Commit 1dda302

Browse files
authored
Merge pull request #109 from layer5io/kumarabd/feature/fix
bug fixe for nil pointer
2 parents dce653f + 41124a8 commit 1dda302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/transform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func Transform(res *nighthawk_client.ExecutionResponse, typ string) ([]byte, err
206206

207207
func constructResults(res *nighthawk_client.ExecutionResponse) ([]Result, error) {
208208
results := make([]Result, 0)
209-
if res == nil {
209+
if res == nil || res.Output == nil {
210210
return nil, ErrResponseNil
211211
}
212212

0 commit comments

Comments
 (0)