Fix race condition in SyncManager (#2137804)
Change-Id: I1165084a5868f340adb51d0d953092fac68d1f64
This commit is contained in:
parent
c41c47fa07
commit
8aed46b4d8
@ -519,6 +519,7 @@ public class SyncManager extends Service implements Runnable {
|
||||
|
||||
private void collectEasAccounts(Cursor c, ArrayList<Account> accounts) {
|
||||
Context context = getContext();
|
||||
if (context == null) return;
|
||||
while (c.moveToNext()) {
|
||||
long hostAuthId = c.getLong(Account.CONTENT_HOST_AUTH_KEY_RECV_COLUMN);
|
||||
if (hostAuthId > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user