Fix NPE in SyncManager

Bug: 2660742
Change-Id: I80ec62a0e128b3f20873a718d951e41f3fa2eb90
This commit is contained in:
Marc Blank 2010-05-05 20:48:09 -07:00
parent 48d2621b45
commit 2b3bbb6948
1 changed files with 4 additions and 2 deletions

View File

@ -830,8 +830,10 @@ public class SyncManager extends Service implements Runnable {
static public String getEasAccountSelector() {
SyncManager syncManager = INSTANCE;
if (syncManager == null) return null;
return syncManager.mAccountObserver.getAccountKeyWhere();
if (syncManager != null && syncManager.mAccountObserver != null) {
return syncManager.mAccountObserver.getAccountKeyWhere();
}
return null;
}
public class SyncStatus {