forked from enlightenment/efl
ecore: protect efl_model_properties_get from accesing NULL pointer when Model parent is not a Efl.BooleanModel.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8659
This commit is contained in:
parent
8872e48458
commit
eb8511ce7b
|
@ -32,9 +32,13 @@ static Eina_Iterator *
|
||||||
_efl_boolean_model_efl_model_properties_get(const Eo *obj,
|
_efl_boolean_model_efl_model_properties_get(const Eo *obj,
|
||||||
Efl_Boolean_Model_Data *pd)
|
Efl_Boolean_Model_Data *pd)
|
||||||
{
|
{
|
||||||
|
Eina_Iterator *properties = NULL;
|
||||||
|
|
||||||
|
if (pd->parent)
|
||||||
|
properties = eina_hash_iterator_key_new(pd->parent->values);
|
||||||
EFL_COMPOSITE_MODEL_PROPERTIES_SUPER(props,
|
EFL_COMPOSITE_MODEL_PROPERTIES_SUPER(props,
|
||||||
obj, EFL_BOOLEAN_MODEL_CLASS,
|
obj, EFL_BOOLEAN_MODEL_CLASS,
|
||||||
eina_hash_iterator_key_new(pd->parent->values));
|
properties);
|
||||||
return props;
|
return props;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue