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

Merge pull request #468 from DEVoytas/patch-1

Fix ArrayIndexOutOfBoundsException crash
This commit is contained in:
Felix Ableitner 2015-10-20 00:32:58 +02:00
commit c432e703d0

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);