Merge "Make sure there is always a user." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9d1745fbf9
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user