File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/resources/android-java Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ public class ApiInvoker {
209
209
}
210
210
211
211
private HttpClient getClient(String host) {
212
- if (client == null) {
212
+ if (client == null) {
213
213
if (ignoreSSLCertificates && ignoreSSLConnectionManager != null) {
214
214
// Trust self signed certificates
215
215
client = new DefaultHttpClient(ignoreSSLConnectionManager, new BasicHttpParams());
@@ -260,7 +260,8 @@ public class ApiInvoker {
260
260
} catch (KeyManagementException e) {
261
261
// This might be thrown when passing a key into init(), but no key is being passed.
262
262
} catch (GeneralSecurityException e) {
263
- throw new RuntimeException("Couldn' t Init SSLSocketFactory: " + e.getMessage(), e);
263
+ // This catches anything else that might go wrong.
264
+ // If anything goes wrong we default to the standard connection manager.
264
265
}
265
266
}
266
267
}
You can’t perform that action at this time.
0 commit comments