mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 08:11:17 +00:00
Merge pull request #468 from DEVoytas/patch-1
Fix ArrayIndexOutOfBoundsException crash
This commit is contained in:
commit
c432e703d0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue