!76 【应用程序框架】运动表bms GetInstallState接口增加bundleName判空

Merge pull request !76 from wangdengjia/0915master
This commit is contained in:
openharmony_ci
2021-09-15 11:08:35 +00:00
committed by Gitee
@@ -174,7 +174,7 @@ bool GtManagerService::GetInstallState(const char *bundleName, InstallState *ins
*installProcess = BMS_INSTALLATION_COMPLETED;
return true;
}
if (bundleInstallMsg_ == nullptr) {
if (bundleInstallMsg_ == nullptr || bundleInstallMsg_->bundleName == nullptr) {
*installState = BUNDLE_INSTALL_FAIL;
*installProcess = 0;
return true;