检视意见

Signed-off-by: 17333770736 <jiatuo@huawei.com>
This commit is contained in:
17333770736 2024-08-19 16:48:56 +08:00
parent cd04b72e38
commit f4e53de7d3

View File

@ -737,10 +737,11 @@ void DistributedSchedPermission::RemoveRemoteObjectFromWant(std::shared_ptr<AAFw
std::map<std::string, sptr<IInterface>> params = wantParams.GetParams();
for (auto param : params) {
sptr<IInterface> object = param.second;
if (IWantParams::Query(object) == nullptr) {
IWantParams *wp = IWantParams::Query(object);
if (wp == nullptr) {
continue;
}
WantParams value = WantParamWrapper::Unbox(IWantParams::Query(object));
WantParams value = WantParamWrapper::Unbox(wp);
auto type = value.GetParam(TYPE_PROPERTY);
AAFwk::IString *typeP = AAFwk::IString::Query(type);
if (typeP == nullptr) {
@ -754,4 +755,4 @@ void DistributedSchedPermission::RemoveRemoteObjectFromWant(std::shared_ptr<AAFw
want->SetParams(wantParams);
}
}
}
}