App: Bugfix for NULL-Pointer dereference of Property->getName()

This commit is contained in:
wmayer
2022-01-16 14:30:51 +01:00
parent b836712c83
commit f147986fa9
14 changed files with 40 additions and 16 deletions

View File

@@ -211,7 +211,7 @@ Property* DynamicProperty::addDynamicProperty(PropertyContainer &pc, const char*
bool DynamicProperty::addProperty(Property *prop)
{
if(!prop || !prop->getName())
if(!prop || !prop->hasName())
return false;
auto &index = props.get<0>();
if(index.count(prop->getName()))