mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
!127 fix distributed mission manager bug when missionInfos is empty
Merge pull request !127 from zhangmingxiang/0130
This commit is contained in:
commit
2dcedefdaa
@ -30,7 +30,7 @@ int32_t MissionInfoConverter::ConvertToDstbMissionInfos(std::vector<AAFwk::Missi
|
||||
std::vector<DstbMissionInfo>& dstbMissionInfos)
|
||||
{
|
||||
if (missionInfos.empty()) {
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
return ERR_OK;
|
||||
}
|
||||
for (auto iter = missionInfos.begin(); iter != missionInfos.end(); iter++) {
|
||||
DstbMissionInfo dstbMissionInfo;
|
||||
@ -50,7 +50,7 @@ int32_t MissionInfoConverter::ConvertToMissionInfos(std::vector<DstbMissionInfo>
|
||||
std::vector<AAFwk::MissionInfo>& missionInfos)
|
||||
{
|
||||
if (dstbMissionInfos.empty()) {
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
return ERR_OK;
|
||||
}
|
||||
for (auto iter = dstbMissionInfos.begin(); iter != dstbMissionInfos.end(); iter++) {
|
||||
AAFwk::MissionInfo missionInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user