Check missing accessible checker code 49/301449/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 16 Nov 2023 04:52:31 +0000 (13:52 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 16 Nov 2023 04:52:31 +0000 (13:52 +0900)
Fix svace issue

Change-Id: I8e60b163fb39ff6481aa85ef4dc1f0ce9cfeef71
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/public-api/controls/control-impl.cpp

index e7a90a19d5e18954799cee745d895335c35f8a90..52e9764edcb7968014b48da92852ed69174984c7 100644 (file)
@@ -597,7 +597,11 @@ void Control::OnPropertySet(Property::Index index, const Property::Value& proper
     }
     case Actor::Property::VISIBLE:
     {
-      GetAccessibleObject()->EmitVisible(Self().GetProperty<bool>(Actor::Property::VISIBLE));
+      auto* accessible = GetAccessibleObject();
+      if(DALI_LIKELY(accessible))
+      {
+        accessible->EmitVisible(Self().GetProperty<bool>(Actor::Property::VISIBLE));
+      }
       break;
     }
     case DevelActor::Property::USER_INTERACTION_ENABLED: