summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/state_controller_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/state_controller_impl.cc')
-rw-r--r--src/components/application_manager/src/state_controller_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/application_manager/src/state_controller_impl.cc b/src/components/application_manager/src/state_controller_impl.cc
index a75345650f..7a231d4cfc 100644
--- a/src/components/application_manager/src/state_controller_impl.cc
+++ b/src/components/application_manager/src/state_controller_impl.cc
@@ -917,6 +917,12 @@ void StateControllerImpl::OnStateChanged(ApplicationSharedPtr app,
SDL_LOG_DEBUG("Window #" << window_id << " old state: " << *old_state);
SDL_LOG_DEBUG("Window #" << window_id << " new state: " << *new_state);
+ if ((new_state->hmi_level() == mobile_apis::HMILevel::INVALID_ENUM) &&
+ (old_state->hmi_level() == mobile_apis::HMILevel::INVALID_ENUM)) {
+ SDL_LOG_DEBUG("HMI level is invalid data.");
+ return;
+ }
+
if (!IsStateChanged(*old_state, *new_state)) {
SDL_LOG_DEBUG("State has NOT been changed.");
return;