diff --git a/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp b/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp index 1191c331106aa3a427ea92087dda8bc36c68d909..72bb336e2c3f2ae715e515fcdd263f7fc6fa9d5b 100644 --- a/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp @@ -134,6 +134,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");