Skip to content
Commit 93a98d86 authored by Robin Lee's avatar Robin Lee
Browse files

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
parent 33350105
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment