Skip to content

Commit

Permalink
defensive nil check IsConnectedToNewRelic()
Browse files Browse the repository at this point in the history
  • Loading branch information
iamemilio authored Oct 24, 2024
1 parent 1bc5ed1 commit c9b52de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/internal/connect_reply.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const (
// from a New Relic connect endpoint. This is determined by the presence of a RunID
// and an EntityGUID which the agent needs to send data to a collector.
func (r *ConnectReply) IsConnectedToNewRelic() bool {
return r.RunID != "" && r.EntityGUID != ""
return r != nil && r.RunID != "" && r.EntityGUID != ""
}

// MockConnectReplyEventLimits sets up a mock connect reply to test event limits
Expand Down

0 comments on commit c9b52de

Please sign in to comment.