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) {