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

Commit f49416b2 authored by joshmccloskey's avatar joshmccloskey Committed by android-build-team Robot
Browse files

Added nullptr check to pullFaceSettingsLocked

Fixes: 175852187
Test: It builds.
Change-Id: Id1eb98f071a96178de42285bb21ef7009517f748
(cherry picked from commit dab89bdd)
parent 5d3dfbad
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3362,7 +3362,11 @@ public class StatsPullAtomService extends SystemService {
    int pullFaceSettingsLocked(int atomTag, List<StatsEvent> pulledData) {
        final long callingToken = Binder.clearCallingIdentity();
        try {
            List<UserInfo> users = mContext.getSystemService(UserManager.class).getUsers();
            UserManager manager = mContext.getSystemService(UserManager.class);
            if (manager == null) {
                return StatsManager.PULL_SKIP;
            }
            List<UserInfo> users = manager.getUsers();
            int numUsers = users.size();
            FaceManager faceManager = mContext.getSystemService(FaceManager.class);