mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Runtime check for GDTR::find()
This commit is contained in:
parent
2103e59ef1
commit
5eb49fcf7e
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user