mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
IcingaDB#SendConfigDelete(): fix missing nullptr check before deref
This commit is contained in:
parent
79efda7a14
commit
7efdae6a53
@ -1577,6 +1577,9 @@ IcingaDB::CreateConfigUpdate(const ConfigObject::Ptr& object, const String typeN
|
|||||||
|
|
||||||
void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
|
void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
|
||||||
{
|
{
|
||||||
|
if (!m_Rcon || !m_Rcon->IsConnected())
|
||||||
|
return;
|
||||||
|
|
||||||
Type::Ptr type = object->GetReflectionType();
|
Type::Ptr type = object->GetReflectionType();
|
||||||
String typeName = type->GetName().ToLower();
|
String typeName = type->GetName().ToLower();
|
||||||
String objectKey = GetObjectIdentifier(object);
|
String objectKey = GetObjectIdentifier(object);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user