Make sure Serialize() doesn't fail for objects which don't have a registered type

fixes #7895
This commit is contained in:
Gunnar Beutner 2014-12-13 21:41:17 +01:00
parent 83058d1123
commit 461cf8dbc1
1 changed files with 2 additions and 1 deletions

View File

@ -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();