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

Commit b373cd01 authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

Fix NPE in InteractionJankMonitor.

- KeyguardSecurityViewFlipper.getSecurityView() can return null.

Bug: 178711695
Test: atest CarDevicePolicyManagerTest
Change-Id: I7b1759437f00a901195c6c2a9028b7ca5f1c0b07
parent ecb4816e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {