Skip to content

Commit 4855c26

Browse files
author
Scott Mertz
committed
SystemUI: fix NPE when configuring blur layer
I noticed a NPE on my device with OOB encryption & password lockscreen (no password required to boot). This fixes it. FEIJ-753 Change-Id: I303354e94be451ab65deb815ecf39cda9d6a339e
1 parent 7a3ef4f commit 4855c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private void applyKeyguardFlags(State state) {
148148
} else {
149149
mLpChanged.flags &= ~WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
150150
mLpChanged.privateFlags &= ~WindowManager.LayoutParams.PRIVATE_FLAG_KEYGUARD;
151-
if (mKeyguardBlurEnabled) {
151+
if (mKeyguardBlurEnabled && mKeyguardBlur != null) {
152152
mKeyguardBlur.hide();
153153
}
154154
}

0 commit comments

Comments
 (0)