From: Ji-hoon Lee Date: Mon, 9 Aug 2021 04:57:27 +0000 (+0900) Subject: Fix crash when specified wakeup engine does not exist X-Git-Tag: accepted/tizen/unified/20210809.125005~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f581b5ea65c47672dd8b0bc029d29e3071ca5dee;p=platform%2Fcore%2Fuifw%2Fmulti-assistant-service.git Fix crash when specified wakeup engine does not exist Change-Id: I6e26ba9dc10031c45886491e9e1235602ebfca0b --- diff --git a/plugins/wakeup-manager/src/wakeup_engine_manager.cpp b/plugins/wakeup-manager/src/wakeup_engine_manager.cpp index b458553..a771a0e 100644 --- a/plugins/wakeup-manager/src/wakeup_engine_manager.cpp +++ b/plugins/wakeup-manager/src/wakeup_engine_manager.cpp @@ -560,9 +560,9 @@ void CWakeupEngineManager::engine_add_target_assistant(string engine_name, strin }); if (mEngineInfo.end() != new_iter) { new_iter->assistant_list.push_back(appid); - } - for (const auto assistant : new_iter->assistant_list) { - MWR_LOGI("Assistant List : %s %s", assistant.c_str(), new_iter->engine_name.c_str()); + for (const auto assistant : new_iter->assistant_list) { + MWR_LOGI("Assistant List : %s %s", assistant.c_str(), new_iter->engine_name.c_str()); + } } } else { /* If the engine already exists, simply add the appid to the assistant list */