mirror of https://github.com/Icinga/icinga2.git
Fix another null pointer deref in GraphiteWriter::SendPerfdata
refs #7268
This commit is contained in:
parent
321809bea8
commit
bb4c4cb952
|
@ -136,6 +136,9 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
|
|||
{
|
||||
Array::Ptr perfdata = cr->GetPerformanceData();
|
||||
|
||||
if (!perfdata)
|
||||
return;
|
||||
|
||||
ObjectLock olock(perfdata);
|
||||
BOOST_FOREACH(const Value& val, perfdata) {
|
||||
PerfdataValue::Ptr pdv;
|
||||
|
|
Loading…
Reference in New Issue