From 1721586c3c8415a8c97f197e1bd334ea17559619 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 24 Sep 2019 11:27:47 +0900 Subject: [PATCH] Fix svace issue Return value of a function 'Dali::Property::Map::Find' is dereferenced without checking. Change-Id: I8074fae7a18a290bb93594f127bf8a3418f4620b Signed-off-by: huiyu.eun --- dali-csharp-binder/src/dali_wrap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 5289e2f..3a3d457 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -63105,7 +63105,8 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetBackgroundColor(void * jar Property::Map* resultMap = ((arg1)->GetProperty( Control::Property::BACKGROUND )).GetMap(); if (resultMap) { - if(resultMap->Find( Toolkit::Visual::Property::TYPE )->Get() == Visual::COLOR ) + Dali::Property::Value* type = resultMap->Find( Toolkit::Visual::Property::TYPE ); + if(type && type->Get() == Visual::COLOR ) { Dali::Property::Value* value = resultMap->Find( ColorVisual::Property::MIX_COLOR ); if (value) -- 2.7.4