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

Commit 0abfbb22 authored by Cutter Coryell's avatar Cutter Coryell Committed by Android (Google) Code Review
Browse files

Merge "EdgeBackGestureHandler: Add null check to fix null pointer exception." into tm-qpr-dev

parents 54217525 32e92cf7
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,