fix nil pointer, again

This commit is contained in:
davidnewhall2 2020-02-01 23:26:56 -08:00
parent 9bdb67a067
commit 16b0e09a4d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}