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

Commit 04876d46 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Make sure there is always a user.

Bug: 269072872
Test: atest com.android.server.pm.UserManagerTest
Change-Id: Ic6c523ede4538cc8152214812f840c146659a7cf
parent cd48412b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3635,6 +3635,13 @@ public class UserManagerService extends IUserManager.Stub {
        } finally {
            IoUtils.closeQuietly(fis);
        }

        synchronized (mUsersLock) {
            if (mUsers.size() == 0) {
                Slog.e(LOG_TAG, "mUsers is empty, fallback to single user");
                fallbackToSingleUserLP();
            }
        }
    }

    /**