mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-27 00:51:07 +00:00
buggix:retun error when getlist size is 0
Signed-off-by: Mupceet <laiguizhong@huawei.com>
This commit is contained in:
parent
21d7745a34
commit
b5d91e9b5c
@ -75,10 +75,6 @@ ErrCode AccessibilityElementOperatorCallbackStub::HandleSetSearchElementInfoByAc
|
||||
HILOG_DEBUG("start");
|
||||
std::vector<AccessibilityElementInfo> infos {};
|
||||
int32_t accessibilityInfosize = data.ReadInt32();
|
||||
if (!accessibilityInfosize) {
|
||||
HILOG_ERROR("accessibilityInfosize is 0");
|
||||
return ERROR;
|
||||
}
|
||||
for (int i = 0; i < accessibilityInfosize; i++) {
|
||||
sptr<AccessibilityElementInfo> accessibilityInfo = data.ReadStrongParcelable<AccessibilityElementInfo>();
|
||||
if (!accessibilityInfo) {
|
||||
@ -99,10 +95,6 @@ ErrCode AccessibilityElementOperatorCallbackStub::HandleSetSearchElementInfoByTe
|
||||
HILOG_DEBUG("start");
|
||||
std::vector<AccessibilityElementInfo> infos {};
|
||||
int32_t accessibilityInfosize = data.ReadInt32();
|
||||
if (!accessibilityInfosize) {
|
||||
HILOG_ERROR("accessibilityInfosize is 0");
|
||||
return ERROR;
|
||||
}
|
||||
for (int i = 0; i < accessibilityInfosize; i++) {
|
||||
sptr<AccessibilityElementInfo> accessibilityInfo = data.ReadStrongParcelable<AccessibilityElementInfo>();
|
||||
if (!accessibilityInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user