diff options
author | Joanne Chung <joannechung@google.com> | 2020-05-05 19:59:30 +0800 |
---|---|---|
committer | Joanne Chung <joannechung@google.com> | 2020-05-08 16:48:52 +0800 |
commit | ee55616ad3b33fd57e3accb889f9c132ca11abef (patch) | |
tree | f69d55f7309aaa7fe758764d98c97a566ae483a0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 01702af7a3a9fba5e8c391ebb254f6f6d6e007ce (diff) |
Prevent crash when AutofillManager.isEnabled() is called
If we cannot get flag information from the AutofillManagerService
after the timeout, we should not crash the process, we need to
handle the enabled information properly.
Also fix NPE because of null component name while calling
AutofillManagerServiceImpl.isWhitelistedForAugmentedAutofillLocked().
Bug: 151273845
Test: atest CtsAutoFillServiceTestCases
Test: manual. Copy the text from Messenger and paste on search bar,
no crash occurred and can paste text correctly.
Change-Id: I8d7ca35226052944fd68fef60a013a65a7fb57c1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions