IcingaDB#SendConfigDelete(): fix missing nullptr check before deref

This commit is contained in:
Alexander A. Klimov 2023-11-10 17:43:33 +01:00
parent 76b460c8ba
commit 7174dc864d

View File

@ -1577,6 +1577,9 @@ IcingaDB::CreateConfigUpdate(const ConfigObject::Ptr& object, const String typeN
void IcingaDB::SendConfigDelete(const ConfigObject::Ptr& object)
{
if (!m_Rcon || !m_Rcon->IsConnected())
return;
Type::Ptr type = object->GetReflectionType();
String typeName = type->GetName().ToLower();
String objectKey = GetObjectIdentifier(object);