Commit 471fecc8 authored by Kevin Funk's avatar Kevin Funk
Browse files

Fix crash on accessing nullptr

parent 15b45df1
......@@ -60,7 +60,7 @@ void ClassType::addContentType(AbstractType::Ptr typeToAdd)
if (!typeToAdd) // TODO: not sure :/
return;
AbstractType::Ptr type = mergeTypes(contentType().abstractType(), typeToAdd);
d_func_dynamic()->m_contentType = type->indexed();
d_func_dynamic()->m_contentType = IndexedType(type);
}
const IndexedType & ClassType::contentType() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment