Fix NPE in SyncManager
Bug: 2660742 Change-Id: I80ec62a0e128b3f20873a718d951e41f3fa2eb90
This commit is contained in:
parent
48d2621b45
commit
2b3bbb6948
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue