Fix another null pointer deref in GraphiteWriter::SendPerfdata

refs #7268
This commit is contained in:
Gunnar Beutner 2014-09-17 16:35:42 +02:00
parent 321809bea8
commit bb4c4cb952
1 changed files with 3 additions and 0 deletions

View File

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