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

Commit 32e92cf7 authored by Cutter Coryell's avatar Cutter Coryell
Browse files

EdgeBackGestureHandler: Add null check to fix null pointer exception.

Fix: 242265617
Test: atest OnBackInvokedDispatcherTest BackAnimationControllerTest BackNavigationControllerTests
Change-Id: I46c1d36808507926273451dca05a9b0764fc0678
parent 43c3022f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -814,8 +814,10 @@ public class EdgeBackGestureHandler extends CurrentUserTracker
        }
        mLogGesture = false;
        String logPackageName = "";
        Map<String, Integer> vocab = mVocab;
        // Due to privacy, only top 100 most used apps by all users can be logged.
        if (mUseMLModel && mVocab.containsKey(mPackageName) && mVocab.get(mPackageName) < 100) {
        if (mUseMLModel && vocab != null && vocab.containsKey(mPackageName)
                && vocab.get(mPackageName) < 100) {
            logPackageName = mPackageName;
        }
        SysUiStatsLog.write(SysUiStatsLog.BACK_GESTURE_REPORTED_REPORTED, backType,