misc_tScan警告

Signed-off-by: h30051954 <hemenghao2@huawei.com>
This commit is contained in:
h30051954 2023-11-27 17:40:09 +08:00
parent aee22fb76f
commit daae4be282

View File

@ -249,7 +249,10 @@ std::shared_ptr<Property> EnableImeDataParser::GetDefaultIme()
}
defaultImeInfo_ = std::make_shared<Property>();
auto info = ImeInfoInquirer::GetInstance().GetDefaultImeInfo(currrentUserId_);
CHECK_NULL_VOID(info);
if (info == nullptr) {
IMSA_HILOGE("GetDefaultImeInfo return nullptr");
return nullptr;
}
defaultImeInfo_->name = info->prop.name;
defaultImeInfo_->id = info->prop.id;
return defaultImeInfo_;