Return value of a function 'Dali::Property::Map::Find' is dereferenced without checking.
Change-Id: I8074fae7a18a290bb93594f127bf8a3418f4620b
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Property::Map* resultMap = ((arg1)->GetProperty( Control::Property::BACKGROUND )).GetMap();
if (resultMap)
{
- if(resultMap->Find( Toolkit::Visual::Property::TYPE )->Get<int>() == Visual::COLOR )
+ Dali::Property::Value* type = resultMap->Find( Toolkit::Visual::Property::TYPE );
+ if(type && type->Get<int>() == Visual::COLOR )
{
Dali::Property::Value* value = resultMap->Find( ColorVisual::Property::MIX_COLOR );
if (value)