mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Make sure Serialize() doesn't fail for objects which don't have a registered type
fixes #7895
This commit is contained in:
parent
83058d1123
commit
461cf8dbc1
@ -55,7 +55,8 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes)
|
|||||||
{
|
{
|
||||||
Type::Ptr type = input->GetReflectionType();
|
Type::Ptr type = input->GetReflectionType();
|
||||||
|
|
||||||
VERIFY(type);
|
if (!type)
|
||||||
|
return Object::Ptr();
|
||||||
|
|
||||||
Dictionary::Ptr fields = new Dictionary();
|
Dictionary::Ptr fields = new Dictionary();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user