mirror of
https://github.com/dstotijn/hetty
synced 2024-11-10 14:14:18 +00:00
sqlite: fix nil deref on missing response (#32)
This commit is contained in:
parent
fedb425381
commit
98dacbe849
1 changed files with 3 additions and 0 deletions
|
@ -502,6 +502,9 @@ func (c *Client) queryHeaders(
|
|||
}
|
||||
defer resHeadersStmt.Close()
|
||||
for i := range reqLogs {
|
||||
if reqLogs[i].Response == nil {
|
||||
continue
|
||||
}
|
||||
headers, err := findHeaders(ctx, resHeadersStmt, reqLogs[i].Response.ID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not query response headers: %v", err)
|
||||
|
|
Loading…
Reference in a new issue