diff options
author | Fred Quintana <fredq@google.com> | 2009-10-28 12:29:15 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2009-10-28 14:52:33 -0700 |
commit | cb41faa285ad0c00bcdc8815d4bf83219552007d (patch) | |
tree | df1a6c6d98906bf27a3799dab7d13e3486d7c819 /core/java/android/content | |
parent | dd28d56368441537ec5eb42150516416fdbf10ad (diff) | |
download | frameworks_base-cb41faa285ad0c00bcdc8815d4bf83219552007d.zip frameworks_base-cb41faa285ad0c00bcdc8815d4bf83219552007d.tar.gz frameworks_base-cb41faa285ad0c00bcdc8815d4bf83219552007d.tar.bz2 |
don't throw an exception when we can't find a pending sync operation in the database
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/SyncManager.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/java/android/content/SyncManager.java b/core/java/android/content/SyncManager.java index 9757ef6..ba18615 100644 --- a/core/java/android/content/SyncManager.java +++ b/core/java/android/content/SyncManager.java @@ -2294,8 +2294,8 @@ class SyncManager implements OnAccountsUpdateListener { } if (!mSyncStorageEngine.deleteFromPending(operationToRemove.pendingOperation)) { - throw new IllegalStateException("unable to find pending row for " - + operationToRemove); + final String errorMessage = "unable to find pending row for " + operationToRemove; + Log.e(TAG, errorMessage, new IllegalStateException(errorMessage)); } if (DEBUG_CHECK_DATA_CONSISTENCY) debugCheckDataStructures(true /* check the DB */); @@ -2314,7 +2314,8 @@ class SyncManager implements OnAccountsUpdateListener { } if (!mSyncStorageEngine.deleteFromPending(operation.pendingOperation)) { - throw new IllegalStateException("unable to find pending row for " + operation); + final String errorMessage = "unable to find pending row for " + operation; + Log.e(TAG, errorMessage, new IllegalStateException(errorMessage)); } if (DEBUG_CHECK_DATA_CONSISTENCY) debugCheckDataStructures(true /* check the DB */); @@ -2336,8 +2337,8 @@ class SyncManager implements OnAccountsUpdateListener { } if (!mSyncStorageEngine.deleteFromPending(syncOperation.pendingOperation)) { - throw new IllegalStateException("unable to find pending row for " - + syncOperation); + final String errorMessage = "unable to find pending row for " + syncOperation; + Log.e(TAG, errorMessage, new IllegalStateException(errorMessage)); } if (DEBUG_CHECK_DATA_CONSISTENCY) debugCheckDataStructures(true /* check the DB */); |