1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 13:21:30 +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]));
try {
post.setEntity(new StringEntity(params[3], HTTP.UTF_8));
Log.v(TAG, "API call parameters: " + params[3]);
post.setEntity(new StringEntity(params[2], HTTP.UTF_8));
Log.v(TAG, "API call parameters: " + params[2]);
httpclient.execute(post);
} catch (IOException|IllegalArgumentException e) {
Log.w(TAG, "Failed to call Rest API at " + fullUri, e);