mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
检视意见
Signed-off-by: 17333770736 <jiatuo@huawei.com>
This commit is contained in:
parent
cd04b72e38
commit
f4e53de7d3
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user