mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 05:50:34 +08:00
Runtime check for GDTR::find()
This commit is contained in:
@@ -124,6 +124,11 @@ void GlobalDataTypeRegistry::freeze()
|
||||
|
||||
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
|
||||
{
|
||||
if (!name)
|
||||
{
|
||||
assert(0);
|
||||
return NULL;
|
||||
}
|
||||
const List* list = selectList(kind);
|
||||
if (!list)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user