diff --git a/services/appmgr/src/module_running_record.cpp b/services/appmgr/src/module_running_record.cpp index 32e834593a..0b99359503 100644 --- a/services/appmgr/src/module_running_record.cpp +++ b/services/appmgr/src/module_running_record.cpp @@ -214,6 +214,8 @@ void ModuleRunningRecord::LaunchAbility(const std::shared_ptrGetName().c_str()); appLifeCycleDeal_->LaunchAbility(ability); ability->SetState(AbilityState::ABILITY_STATE_READY); + } else { + HILOG_ERROR("Can not find ability or get appThread."); } }