From: Gunnar Beutner Date: Wed, 17 Sep 2014 14:35:42 +0000 (+0200) Subject: Fix another null pointer deref in GraphiteWriter::SendPerfdata X-Git-Tag: v2.2.0~438 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb4c4cb95214188638570505c9f7516c37853200;p=icinga2 Fix another null pointer deref in GraphiteWriter::SendPerfdata refs #7268 --- diff --git a/components/perfdata/graphitewriter.cpp b/components/perfdata/graphitewriter.cpp index fc87a9165..e4bf521a5 100644 --- a/components/perfdata/graphitewriter.cpp +++ b/components/perfdata/graphitewriter.cpp @@ -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;