From: huiyu.eun Date: Thu, 5 Sep 2019 01:49:13 +0000 (+0900) Subject: Fix svace issue X-Git-Tag: dali_1.4.37~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F213392%2F1;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Fix svace issue Return value of a function 'Dali::Property::Map::Find' is dereferenced without checking. Change-Id: I944682e9f4589235052c2b33dae22e59b68b6431 Signed-off-by: huiyu.eun --- diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 1349d7b..5289e2f 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -63107,7 +63107,11 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetBackgroundColor(void * jar { if(resultMap->Find( Toolkit::Visual::Property::TYPE )->Get() == Visual::COLOR ) { - result = resultMap->Find( ColorVisual::Property::MIX_COLOR )->Get(); + Dali::Property::Value* value = resultMap->Find( ColorVisual::Property::MIX_COLOR ); + if (value) + { + result = value->Get(); + } } } } catch (std::out_of_range& e) {