Merge "[Autofill PCC]: Fix SaveInfo IllegalArgumentException" into udc-dev

This commit is contained in:
Simranjit Kohli
2023-05-09 16:55:45 +00:00
committed by Android (Google) Code Review

View File

@@ -1726,6 +1726,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
} }
} }
} }
if (ids.isEmpty()) return saveInfo;
AutofillId[] autofillIds = new AutofillId[ids.size()]; AutofillId[] autofillIds = new AutofillId[ids.size()];
ids.toArray(autofillIds); ids.toArray(autofillIds);
return SaveInfo.copy(saveInfo, autofillIds); return SaveInfo.copy(saveInfo, autofillIds);