OSDN Git Service

Don't allow null ids on FillResponse.Builder.setAuthentication()
authorFelipe Leme <felipeal@google.com>
Wed, 21 Mar 2018 19:56:05 +0000 (12:56 -0700)
committerFelipe Leme <felipeal@google.com>
Wed, 21 Mar 2018 21:13:17 +0000 (14:13 -0700)
commit25960891466a5291c4e71309a07cb9f53fea9c16
tree0c9398bf08b085cef4a70ebfa206df3726c05bf1
parent655877cd84d274ff66bc29f5889dec554a439312
Don't allow null ids on FillResponse.Builder.setAuthentication()

It would crash the system when save is invoked.

The issue was reproduced by passing a null id on
AuthenticationTest#testFillResponseAuthServiceHasNoDataButCanSave , but that
change was not committed because with the fix the builder would throw an
exception.

Test: atest CtsAutoFillServiceTestCases:FillResponseTest

Fixes: 76097200

Change-Id: Ifa8105ee1451ba7107082a94a538a8f84f50df18
core/java/android/service/autofill/AutofillServiceHelper.java [new file with mode: 0644]
core/java/android/service/autofill/FillResponse.java
core/java/android/service/autofill/SaveInfo.java