Skip to content

Commit

Permalink
fix dereference (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran authored Mar 25, 2023
1 parent b765f13 commit 0c090bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hive.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func (c *Cursor) FetchLogs() []string {
logRequest.FetchType = 1

resp, err := c.conn.client.FetchResults(context.Background(), logRequest)
if err != nil {
if err != nil || resp == nil || resp.Results == nil {
c.Err = err
return nil
}
Expand Down

0 comments on commit 0c090bd

Please sign in to comment.