From: MyoungJune Park Date: Sat, 16 Jul 2016 07:30:15 +0000 (+0900) Subject: Add NULL guard for ringtone volume ptr (Call Volume slider) X-Git-Tag: submit/tizen/20160716.073557^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3467016d155ce0dd2ba0f99e65f2b75dc5ab33f;p=profile%2Fmobile%2Fapps%2Fnative%2Fsettings.git Add NULL guard for ringtone volume ptr (Call Volume slider) Change-Id: I78db4b0dbaae09b70984104a6a2f65ac7f585aa5 Signed-off-by: MyoungJune Park --- diff --git a/setting-profile/src/setting-profile-common.c b/setting-profile/src/setting-profile-common.c index c6541fe1..9ca34fc8 100644 --- a/setting-profile/src/setting-profile-common.c +++ b/setting-profile/src/setting-profile-common.c @@ -380,7 +380,7 @@ static void __disable_sound_menu(void *data) item_to_update = ad->data_sound_when_ring; setting_genlist_item_disabled_set(item_to_update, EINA_TRUE); /* Disable Call Volume slider if Silent ringtone is selected */ - if (!safeStrCmp(ad->data_call_alert_tone->sub_desc, "Silent")) { + if (!safeStrCmp(ad->data_call_alert_tone && ad->data_call_alert_tone->sub_desc, "Silent")) { elm_object_item_disabled_set(ad->data_call_volume->item, EINA_TRUE); elm_object_disabled_set(ad->data_call_volume->eo_check, EINA_TRUE); }