Fix null pointer deref in PluginUtility::FormatPerfdata

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

View File

@ -272,6 +272,9 @@ Array::Ptr PluginUtility::SplitPerfdata(const String& perfdata)
String PluginUtility::FormatPerfdata(const Array::Ptr& perfdata) String PluginUtility::FormatPerfdata(const Array::Ptr& perfdata)
{ {
if (!perfdata)
return "";
std::ostringstream result; std::ostringstream result;
ObjectLock olock(perfdata); ObjectLock olock(perfdata);