Skip to content

Commit

Permalink
Merge pull request #439 from zerodivisi0n/patch-1
Browse files Browse the repository at this point in the history
Fix npe on debug output
  • Loading branch information
ehsandeep authored Nov 22, 2021
2 parents f408ed6 + 64734dd commit a1b0a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ retry:
gologger.Info().Msgf("Dumped HTTP request for %s\n\n", fullURL)
gologger.Print().Msgf("%s", string(requestDump))
}
if r.options.Debug || r.options.DebugResponse {
if (r.options.Debug || r.options.DebugResponse) && resp != nil {
gologger.Info().Msgf("Dumped HTTP response for %s\n\n", fullURL)
gologger.Print().Msgf("%s", string(resp.Raw))
}
Expand Down

0 comments on commit a1b0a89

Please sign in to comment.