1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 22:31:16 +00:00

Fix ArrayIndexOutOfBoundsException crash

This commit is contained in:
Mariusz 2015-10-19 23:11:21 +01:00
parent ff5fefca20
commit 16a444099c

View file

@ -43,8 +43,8 @@ public class PostConfigTask extends AsyncTask<String, Void, Boolean> {
post.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[1])); post.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[1]));
try { try {
post.setEntity(new StringEntity(params[3], HTTP.UTF_8)); post.setEntity(new StringEntity(params[2], HTTP.UTF_8));
Log.v(TAG, "API call parameters: " + params[3]); Log.v(TAG, "API call parameters: " + params[2]);
httpclient.execute(post); httpclient.execute(post);
} catch (IOException|IllegalArgumentException e) { } catch (IOException|IllegalArgumentException e) {
Log.w(TAG, "Failed to call Rest API at " + fullUri, e); Log.w(TAG, "Failed to call Rest API at " + fullUri, e);