diff --git a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java index b5f648b7ef3b1..6a0a31bbeef9f 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java @@ -346,6 +346,13 @@ public class CarKeyguardViewController extends OverlayViewController implements private void revealKeyguardIfBouncerPrepared() { int reattemptDelayMillis = 50; Runnable revealKeyguard = () -> { + if (mBouncer == null) { + if (DEBUG) { + Log.d(TAG, "revealKeyguardIfBouncerPrepared: revealKeyguard request is ignored " + + "since the Bouncer has not been initialized yet."); + } + return; + } if (!mBouncer.inTransit() || !mBouncer.isSecure()) { getLayout().setVisibility(View.VISIBLE); } else {