!524 OH红军检视安全问题修复

Merge pull request !524 from 毕岩/master
This commit is contained in:
openharmony_ci
2023-02-20 13:18:26 +00:00
committed by Gitee
@@ -315,8 +315,7 @@ uint32_t AccessibleAbilityManagerService::RegisterCaptionObserver(
{
HILOG_DEBUG();
if (!callback || !handler_) {
HILOG_ERROR("Parameters check failed! callback:%{public}p, handler:%{public}p",
callback.GetRefPtr(), handler_.get());
HILOG_ERROR("Parameters check failed!");
return ERR_INVALID_VALUE;
}
@@ -396,7 +395,7 @@ RetError AccessibleAbilityManagerService::GetAbilityList(const uint32_t abilityT
{
HILOG_DEBUG("abilityTypes(%{public}d) stateType(%{public}d)", abilityTypes, stateType);
if (!handler_ || (stateType > ABILITY_STATE_INSTALLED) || (stateType < ABILITY_STATE_ENABLE)) {
HILOG_ERROR("Parameters check failed! stateType:%{public}d, handler:%{public}p", stateType, handler_.get());
HILOG_ERROR("Parameters check failed! stateType:%{public}d", stateType);
return RET_ERR_INVALID_PARAM;
}
@@ -1949,8 +1948,7 @@ uint32_t AccessibleAbilityManagerService::RegisterConfigObserver(
{
HILOG_DEBUG();
if (!callback || !handler_) {
HILOG_ERROR("Parameters check failed! callback:%{public}p, handler:%{public}p",
callback.GetRefPtr(), handler_.get());
HILOG_ERROR("Parameters check failed!");
return ERR_INVALID_VALUE;
}