commit | 4929a5d3b434a6915d64e449b234b40b8eff9993 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Mon Jan 23 23:55:28 2017 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Mon Jan 23 23:55:28 2017 +0000 |
tree | 9a320a753b3f3aa2228f46faba1fd3946f6b8270 | |
parent | 18de051c986b0871848a77d2c2dd11659af365c9 [diff] |
Fix NPE in LockPatternUtils mDevicePolicyManager field can be null if getDevicePolicyManager() is never called. A previous refactor removed an apparent unused call to getDevicePolicyManager(), leading to NPE when mDevicePolicyManager is accessed. We should always use getDevicePolicyManager() to access DevicePolicyManager instance. Test: manual Bug: 34612758 Change-Id: Ic964b4ee4e3c56301295b8f0629bd005c732c5c4