mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 00:03:33 +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
|
const DataTypeDescriptor* GlobalDataTypeRegistry::find(DataTypeKind kind, const char* name) const
|
||||||
{
|
{
|
||||||
|
if (!name)
|
||||||
|
{
|
||||||
|
assert(0);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
const List* list = selectList(kind);
|
const List* list = selectList(kind);
|
||||||
if (!list)
|
if (!list)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user