From 8aed46b4d804b09983d44fce46a842ffa95d3e63 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Sun, 27 Sep 2009 10:59:38 -0700 Subject: [PATCH] Fix race condition in SyncManager (#2137804) Change-Id: I1165084a5868f340adb51d0d953092fac68d1f64 --- src/com/android/exchange/SyncManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java index 8b51834e6..f406b5e81 100644 --- a/src/com/android/exchange/SyncManager.java +++ b/src/com/android/exchange/SyncManager.java @@ -519,6 +519,7 @@ public class SyncManager extends Service implements Runnable { private void collectEasAccounts(Cursor c, ArrayList 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) {