Merge pull request !808 from longwei/master
This commit is contained in:
openharmony_ci 2022-03-01 11:26:56 +00:00 committed by Gitee
commit e816e776ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -652,7 +652,7 @@ bool BundleDataMgr::QueryLauncherAbilityInfos(
// query all launcher ability
for (const auto &item : bundleInfos_) {
auto infoWithIdItem = item.second.find(Constants::CURRENT_DEVICE_ID);
if (infoWithIdItem->second.IsDisabled()) {
if (infoWithIdItem != item.second.end() && infoWithIdItem->second.IsDisabled()) {
APP_LOGI("app %{public}s is disabled", infoWithIdItem->second.GetBundleName().c_str());
continue;
}

View File

@ -40,7 +40,7 @@ const std::string SEPARATOR = "/";
bool AddFileContentToZip(zipFile zip_file, FilePath &file_path)
{
APP_LOGI("%{public}s called", __func__);
int num_bytes;
uint32_t num_bytes;
char buf[kZipBufSize];
if (!FilePathCheckValid(file_path.Value())) {
APP_LOGI(