Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7441ed46 authored by Simranjit Kohli's avatar Simranjit Kohli
Browse files

[Autofill PCC]: Fix SaveInfo IllegalArgumentException

Don't create SaveInfo if there are no eligible autofill ids.
Test: atest CtsAutoFillServiceTestCases
Bug: 281312204

Change-Id: I5c304422dde5576d0f6408e649a420b57bb2a58e
parent d33c5e3d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1716,6 +1716,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                    }
                }
            }
            if (ids.isEmpty()) return saveInfo;
            AutofillId[] autofillIds = new AutofillId[ids.size()];
            ids.toArray(autofillIds);
            return SaveInfo.copy(saveInfo, autofillIds);