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

Commit 08372963 authored by Lee Shombert's avatar Lee Shombert Committed by Android (Google) Code Review
Browse files

Merge "Fix a crash during mock testing"

parents 646db04e c185ae1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1488,7 +1488,8 @@ public class BroadcastQueueImpl extends BroadcastQueue {
            // LocalServices.getService() here.
            final UserManagerInternal umInternal = LocalServices.getService(
                    UserManagerInternal.class);
            final UserInfo userInfo = umInternal.getUserInfo(r.userId);
            final UserInfo userInfo =
                    (umInternal != null) ? umInternal.getUserInfo(r.userId) : null;
            if (userInfo != null) {
                userType = UserManager.getUserTypeForStatsd(userInfo.userType);
            }