From: Eunki, Hong Date: Thu, 16 Nov 2023 04:52:31 +0000 (+0900) Subject: Check missing accessible checker code X-Git-Tag: dali_2.2.53~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F301449%2F1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Check missing accessible checker code Fix svace issue Change-Id: I8e60b163fb39ff6481aa85ef4dc1f0ce9cfeef71 Signed-off-by: Eunki, Hong --- diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index e7a90a19d5..52e9764edc 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -597,7 +597,11 @@ void Control::OnPropertySet(Property::Index index, const Property::Value& proper } case Actor::Property::VISIBLE: { - GetAccessibleObject()->EmitVisible(Self().GetProperty(Actor::Property::VISIBLE)); + auto* accessible = GetAccessibleObject(); + if(DALI_LIKELY(accessible)) + { + accessible->EmitVisible(Self().GetProperty(Actor::Property::VISIBLE)); + } break; } case DevelActor::Property::USER_INTERACTION_ENABLED: