[dali_1.4.39] Merge branch 'devel/master'
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / dali_wrap.cpp
index 1349d7b..3a3d457 100755 (executable)
@@ -63105,9 +63105,14 @@ 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<int>() == Visual::COLOR )
+        Dali::Property::Value* type = resultMap->Find( Toolkit::Visual::Property::TYPE );
+        if(type && type->Get<int>() == Visual::COLOR )
         {
-          result = resultMap->Find( ColorVisual::Property::MIX_COLOR )->Get<Vector4>();
+          Dali::Property::Value* value = resultMap->Find( ColorVisual::Property::MIX_COLOR );
+          if (value)
+          {
+            result = value->Get<Vector4>();
+          }
         }
       }
     } catch (std::out_of_range& e) {