Fix NPE in mobile-spec Upload of an unknown host test.

Was happening over cell connection.
This commit is contained in:
Andrew Grieve
2013-07-30 11:35:09 -04:00
committed by Steven Gill
parent d50689cd43
commit a83011685d
+2 -1
View File
@@ -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);
}
}