summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yuncheol Heo <ycheo@google.com> 2021-02-02 20:43:06 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-02-02 20:43:06 +0000
commit8cd0c59330c832b01545c10939159f5297a64c4f (patch)
tree67192d637b3642cfa9c243bbce6fb4c518c1f504
parent542ef93d7bb47aabb3b406730ec435054268c773 (diff)
parentb373cd01032533cf6e4f91c7fae888af8330d63d (diff)
Merge "Fix NPE in InteractionJankMonitor." into sc-dev
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
index cc59c39888a8..30db341a061c 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
@@ -395,7 +395,9 @@ public class KeyguardSecurityContainer extends FrameLayout {
}
private void beginJankInstrument(int cuj) {
- InteractionJankMonitor.getInstance().begin(mSecurityViewFlipper.getSecurityView(), cuj);
+ KeyguardInputView securityView = mSecurityViewFlipper.getSecurityView();
+ if (securityView == null) return;
+ InteractionJankMonitor.getInstance().begin(securityView, cuj);
}
private void endJankInstrument(int cuj) {