Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ee256d2 authored by Dan Sandler's avatar Dan Sandler
Browse files

Avoid NPE when mRoot is null.

Bug: 14162288
Change-Id: I36793d706ab1d29576f536562a0c06f7805a0d50
parent 06661993
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public class KeyguardBouncer {
    }

    public void onScreenTurnedOff() {
        if (mKeyguardView != null && mRoot.getVisibility() == View.VISIBLE) {
        if (mKeyguardView != null && mRoot != null && mRoot.getVisibility() == View.VISIBLE) {
            mKeyguardView.onPause();
        }
    }