commit | 134d0411537c0c03e2363fe4190b35bba6be7546 | [log] [tgz] |
---|---|---|
author | Joanne Chung <joannechung@google.com> | Tue Feb 23 00:31:44 2021 +0800 |
committer | Joanne Chung <joannechung@google.com> | Tue Feb 23 00:31:44 2021 +0800 |
tree | 6444ab66af2a6f50e10941d14fb13255ba17cb86 | |
parent | b8737dac2c10558a05a8df5e6882b110136d72f9 [diff] |
Fix NPE in AutofillManager when feature autofill is disabled When feature_autofill is not present on device IAutoFillManager service could be null. It is proposed to check service for null before trying to add client to prevent NPE. Bug: 180913556 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases \ -t android.widget.cts.DatePickerTest#testPartsVisibilityInSpinnerMode Test: atest CtsAutoFillServiceTestCases Change-Id: I4d65fe4f664e37115d653e981094f1a52c1d97e8