Skip to content

Commit

Permalink
Double check that ips is not nil before using
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Apr 21, 2022
1 parent 626b37c commit 871b3d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/metrics/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ func (s *CrawlerServiceMetrics) GetIPsAfterTimestamp(ips *rpc.GetIPsAfterTimesta
return
}

if ips == nil {
return
}

type countStruct struct {
ISOCode string
Name string
Expand Down

0 comments on commit 871b3d6

Please sign in to comment.