mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
add vector empty check
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
1551ca7e76
commit
bedbd6e940
@ -419,7 +419,7 @@ void DmsContinueTime::ShowInfo(std::string& result)
|
||||
|
||||
int64_t DmsContinueTime::GetTotalTime()
|
||||
{
|
||||
HILOGD("GetTotalTime start, durationInfo_.size is %{public}lu", durationInfo_.size());
|
||||
HILOGD("GetTotalTime start, durationInfo_.size is %{public}zu", durationInfo_.size());
|
||||
if (durationInfo_.empty() || durationInfo_.size() < DMSDURATION_TOTALTIME) {
|
||||
HILOGE("totalTime is not exist.");
|
||||
return DMSDURATION_EMPTY_TIME;
|
||||
|
Loading…
Reference in New Issue
Block a user