From: masensio Date: Thu, 6 Feb 2014 10:13:36 +0000 (+0100) Subject: OC-2841: Fix bug: Folder doesn't refresh and loading is in the action bar for more... X-Git-Tag: oc-android-1.5.5~58^2~3 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/45b73934faa70408007ca4461d8a514282806c3a?hp=--cc OC-2841: Fix bug: Folder doesn't refresh and loading is in the action bar for more than 12 minutes --- 45b73934faa70408007ca4461d8a514282806c3a diff --git a/src/com/owncloud/android/services/OperationsService.java b/src/com/owncloud/android/services/OperationsService.java index 316657c4..80149f63 100644 --- a/src/com/owncloud/android/services/OperationsService.java +++ b/src/com/owncloud/android/services/OperationsService.java @@ -228,7 +228,14 @@ public class OperationsService extends Service { Log_OC.e(TAG, "Error while trying to get autorization for " + mLastTarget.mAccount.name, e); } result = new RemoteOperationResult(e); - + } catch (Exception e) { + if (mLastTarget.mAccount == null) { + Log_OC.e(TAG, "Unexpected error for a NULL account", e); + } else { + Log_OC.e(TAG, "Unexpected error for " + mLastTarget.mAccount.name, e); + } + result = new RemoteOperationResult(e); + } finally { synchronized(mPendingOperations) { mPendingOperations.poll();