You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2015/10/17 10:49:46 UTC

cordova-plugin-file-transfer git commit: CB-8431 File Transfer tests crash on Android Lolipop

Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master 869eea41e -> ea271933e


CB-8431 File Transfer tests crash on Android Lolipop

github: close #79


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/ea271933
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/ea271933
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/ea271933

Branch: refs/heads/master
Commit: ea271933e933361312be9af36f1e2244099be0d8
Parents: 869eea4
Author: Vito Rifino <vi...@gmail.com>
Authored: Sat Oct 17 11:34:32 2015 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Sat Oct 17 11:40:44 2015 +0300

----------------------------------------------------------------------
 src/android/FileTransfer.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/ea271933/src/android/FileTransfer.java
----------------------------------------------------------------------
diff --git a/src/android/FileTransfer.java b/src/android/FileTransfer.java
index 610ffe9..c296ddb 100644
--- a/src/android/FileTransfer.java
+++ b/src/android/FileTransfer.java
@@ -1011,7 +1011,11 @@ public class FileTransfer extends CordovaPlugin {
                         context.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, error));
                         context.aborted = true;
                         if (context.connection != null) {
-                            context.connection.disconnect();
+                            try {
+                                context.connection.disconnect();
+                            } catch (Exception e) {
+                                Log.e(LOG_TAG, "CB-8431 Catch workaround for fatal exception", e);
+                            }
                         }
                     }
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org