summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Robin Lee <rgl@google.com> 2022-05-10 08:45:28 +0200
committer Robin Lee <rgl@google.com> 2022-05-10 06:52:02 +0000
commit93a98d862fbf90af9e3b5945d2ca613d8ec62fe9 (patch)
treed89b708dc69b56e92446683ac4676479e37e7455 /libs/androidfw/AttributeResolution.cpp
parent33350105bc2a0dd04431fe0a284c9150103deb16 (diff)
Change a nullable get to getOrDefault(,false)
Implicitly casting from a Map<,Boolean> to a boolean will cause a NullPointerException if the map isn't populated yet. The default should be false because this is more conservative with respect to how users are allowed to unlock their device if the real information isn't available yet (or won't be available because the device doesn't have a keyguard yet still calls this API). Test: adb reboot; adb logcat | grep NullPointerException Fix: 231987867 Change-Id: Ie631286a30eaa1d9db36d8a149b9165df292429d
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions