From 1bbcd105a164ebbd69ee3fd1fe8fb75cd8a8c0cb Mon Sep 17 00:00:00 2001 From: Fred Quintana Date: Wed, 10 Feb 2010 10:04:33 -0800 Subject: fix an NPE in SyncManager's dump where it can get a null AuthorityInfo; instead create one if one doesn't exist yet --- core/java/android/content/SyncManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/content/SyncManager.java') diff --git a/core/java/android/content/SyncManager.java b/core/java/android/content/SyncManager.java index ebb95e8..9ff2e25 100644 --- a/core/java/android/content/SyncManager.java +++ b/core/java/android/content/SyncManager.java @@ -1041,7 +1041,7 @@ public class SyncManager implements OnAccountsUpdateListener { continue; } - SyncStorageEngine.AuthorityInfo settings = mSyncStorageEngine.getAuthority( + SyncStorageEngine.AuthorityInfo settings = mSyncStorageEngine.getOrCreateAuthority( account, syncAdapterType.type.authority); SyncStatusInfo status = mSyncStorageEngine.getOrCreateSyncStatus(settings); pw.print(" "); pw.print(settings.authority); -- cgit v1.1