mirror of https://github.com/Icinga/icinga2.git
Fix null pointer dereference in StatusTargetProvider::GetTargetByName
refs #9088
This commit is contained in:
parent
f498ce39f3
commit
b40152f9fb
|
@ -45,6 +45,9 @@ public:
|
|||
{
|
||||
StatsFunction::Ptr func = StatsFunctionRegistry::GetInstance()->GetItem(name);
|
||||
|
||||
if (!func)
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid status function name."));
|
||||
|
||||
Dictionary::Ptr result = new Dictionary();
|
||||
|
||||
Dictionary::Ptr status = new Dictionary();
|
||||
|
|
Loading…
Reference in New Issue