fix nil pointer, again
This commit is contained in:
parent
9bdb67a067
commit
16b0e09a4d
|
|
@ -291,7 +291,7 @@ func (u *InfluxUnifi) loopDevicePoints(r report) {
|
||||||
|
|
||||||
// LogInfluxReport writes a log message after exporting to influxdb.
|
// LogInfluxReport writes a log message after exporting to influxdb.
|
||||||
func (u *InfluxUnifi) LogInfluxReport(r *Report) {
|
func (u *InfluxUnifi) LogInfluxReport(r *Report) {
|
||||||
if r == nil || r.Metrics == nil {
|
if r == nil || r.Metrics == nil || r.Metrics.Devices == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue