Merge branch 'share_link__new_share' into share_link__unshare_file
authormasensio <masensio@solidgear.es>
Thu, 6 Feb 2014 10:23:30 +0000 (11:23 +0100)
committermasensio <masensio@solidgear.es>
Thu, 6 Feb 2014 10:23:30 +0000 (11:23 +0100)
owncloud-android-library
src/com/owncloud/android/services/OperationsService.java

index f166bcd..e9a1ee8 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f166bcdd8b52a64c3ad0c8725ed64ba768c1eeb5
+Subproject commit e9a1ee81ca37182963467f85476de0fbc216d2e7
index 316657c..80149f6 100644 (file)
@@ -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();