mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user