Merge pull request #473 from unpoller/datadog-output-npe-3
bugfix: datadog NPE
This commit is contained in:
commit
a0feffb4f8
|
|
@ -194,7 +194,10 @@ func (u *DatadogUnifi) Enabled() bool {
|
||||||
if u == nil {
|
if u == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if u.Enable == nil || u.Config == nil {
|
if u.Config == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if u.Enable == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return *u.Enable
|
return *u.Enable
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue