diff --git a/lib/config/configitem.cpp b/lib/config/configitem.cpp index 8690162f5..898ad53c1 100644 --- a/lib/config/configitem.cpp +++ b/lib/config/configitem.cpp @@ -150,6 +150,9 @@ DynamicObject::Ptr ConfigItem::Commit(void) DynamicType::Ptr dtype = DynamicType::GetByName(GetType()); + if (!dtype) + throw_exception(runtime_error("Type '" + GetType() + "' does not exist.")); + if (!dobj) dobj = dtype->GetObject(GetName());