Skip to content

Commit

Permalink
fix: do not crash daemon with nil querymeta
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Dec 10, 2024
1 parent 9129e14 commit bdfd3a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daemons/reporter/client/reporter_monitors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ func (c *Client) MonitorCyclelistQuery(ctx context.Context, wg *sync.WaitGroup)
if err != nil {
// log error
c.logger.Error("getting current query", "error", err)
continue
}

if querymeta == nil {
c.logger.Error("QueryMeta is nil")
continue
}

mutex.RLock()
committed := commitedIds[querymeta.Id]
mutex.RUnlock()
Expand Down

0 comments on commit bdfd3a3

Please sign in to comment.