mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
Fix NPE in mobile-spec Upload of an unknown host test.
Was happening over cell connection.
This commit is contained in:
committed by
Steven Gill
parent
d50689cd43
commit
a83011685d
@@ -595,7 +595,8 @@ public class FileTransfer extends CordovaPlugin {
|
||||
body = bodyBuilder.toString();
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
// IOException can leave connection object in a bad state, so catch all exceptions.
|
||||
} catch (Throwable e) {
|
||||
Log.w(LOG_TAG, "Error getting HTTP status code from connection.", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user