diff --git a/interfaces/kits/js/src/mod_fs/properties/access_core.cpp b/interfaces/kits/js/src/mod_fs/properties/access_core.cpp index 7253e41fdd77f2080fc10a7ecd39e82a1fb5bfe3..8ecd7b63f4659a81e52e7b2bd6a370f8c9d3a4b5 100644 --- a/interfaces/kits/js/src/mod_fs/properties/access_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/access_core.cpp @@ -84,6 +84,7 @@ static sptr GetBundleMgrProxy() HILOGE("fail to get system ability mgr"); return nullptr; } + sptr remoteObject = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); if (!remoteObject) { HILOGE("fail to get bundle manager proxy");