From: saerome.kim Date: Tue, 30 Jul 2019 07:56:07 +0000 (+0900) Subject: Fixed crash if all devices are removed during reporting ABSENCE event. X-Git-Tag: accepted/tizen/unified/20190730.224309~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c1b640e37c69455a91e27162104f6a1d09599c9;p=platform%2Fcore%2Fconnectivity%2Fua-manager.git Fixed crash if all devices are removed during reporting ABSENCE event. Change-Id: Id7e0822b4c2f636881b08f41064d94212e5e57e0 Signed-off-by: saerome.kim --- diff --git a/ua-daemon/src/ua-manager-core.c b/ua-daemon/src/ua-manager-core.c index 131fbf5..702c586 100644 --- a/ua-daemon/src/ua-manager-core.c +++ b/ua-daemon/src/ua-manager-core.c @@ -2380,6 +2380,9 @@ static void __send_user_absence_event(uam_tech_type_e type, unsigned int sensor) if (!tech || (tech->tech_type != type)) continue; + if (!tech->device || !tech->device->user) + continue; + l2 = g_slist_find_custom(present_users, &(tech->device->user->user_id), __compare_user_id); if (UAM_PRESENCE_STATE_PRESENT == tech->presence_state) {