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

Commit 109ae787 authored by Oli Lan's avatar Oli Lan Committed by Android (Google) Code Review
Browse files

Merge "Check for null application context in UserManager." into tm-qpr-dev

parents 04fd3493 37471ba1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1971,7 +1971,8 @@ public class UserManager {
    /** @hide */
    public UserManager(Context context, IUserManager service) {
        mService = service;
        mContext = context.getApplicationContext();
        Context appContext = context.getApplicationContext();
        mContext = (appContext == null ? context : appContext);
        mUserId = context.getUserId();
    }