mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes)
|
|||
{
|
||||
Type::Ptr type = input->GetReflectionType();
|
||||
|
||||
VERIFY(type);
|
||||
if (!type)
|
||||
return Object::Ptr();
|
||||
|
||||
Dictionary::Ptr fields = new Dictionary();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue