IssueNo:#I4A59C

Description:add whether bundleName is nullptr
Sig:appexecfwk
Feature or Bugfix:Bugfix
Binary Source:No

Signed-off-by: wangdengjia <wangdengjia@huawei.com>
Change-Id: I41b307bb9ddd357be839403a541c6e387918d0b5
This commit is contained in:
wangdengjia
2021-09-15 15:24:53 +08:00
parent d085f5477a
commit cc5ccc1376
@@ -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;