diff options
author | Curtis Belmonte <curtislb@google.com> | 2019-10-24 12:55:01 -0700 |
---|---|---|
committer | Curtis Belmonte <curtislb@google.com> | 2019-10-24 15:01:24 -0700 |
commit | ffa9d87b1f4691e542fc56693350358a16d4fbae (patch) | |
tree | f639d308fd3d3326f0b3ed2c8efc68471f9f7986 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | ede9fb07a6f0251f1d7fff081afeb547865331fe (diff) |
Check for null receiver in biometric AuthController
We've witnessed at least one crash due to mReceiver being null while
trying to handle callbacks such as onTryAgainPressed in AuthController
(formerly BiometricDialogImpl). In these cases, not running the callback
is likely better than crashing, so this commit adds null-checks where
they're currently missing. It also adds unit test cases to exercise the
new logic.
Test: atest AuthControllerTest
Fixes: 143251337
Change-Id: I3c46c7fab0dfe802de499180c7bb0c756f7e652b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions