mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue