diff options
| author | 2020-04-07 11:14:42 -0700 | |
|---|---|---|
| committer | 2020-04-07 11:14:42 -0700 | |
| commit | 7a38cf95d104c0e55b757366b184dc7409c6f41f (patch) | |
| tree | 9560ebb8bed6a107af989e530421438adb6612ef | |
| parent | fc294e8603a559e18d5140a45bce5af379d5e32c (diff) | |
Guard against NPE
Fixes: 153106423
Test: make
Change-Id: Ib50c7bc4985246d347859793ab1bf2a7a8a45016
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java index f06cfec9480a..82e02b47974c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBouncer.java @@ -203,7 +203,9 @@ public class KeyguardBouncer { Log.wtf(TAG, "onFullyShown when view was null"); } else { mKeyguardView.onResume(); - mRoot.announceForAccessibility(mKeyguardView.getAccessibilityTitleForCurrentMode()); + if (mRoot != null) { + mRoot.announceForAccessibility(mKeyguardView.getAccessibilityTitleForCurrentMode()); + } } } |