mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-19 16:14:38 +02:00
fix nil pointer, again
This commit is contained in:
@@ -291,7 +291,7 @@ func (u *InfluxUnifi) loopDevicePoints(r report) {
|
||||
|
||||
// LogInfluxReport writes a log message after exporting to influxdb.
|
||||
func (u *InfluxUnifi) LogInfluxReport(r *Report) {
|
||||
if r == nil || r.Metrics == nil {
|
||||
if r == nil || r.Metrics == nil || r.Metrics.Devices == nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user