From 16a444099c4c1f4a46efd6aba0f9257f4c163def Mon Sep 17 00:00:00 2001 From: Mariusz Date: Mon, 19 Oct 2015 23:11:21 +0100 Subject: [PATCH] Fix ArrayIndexOutOfBoundsException crash --- .../nutomic/syncthingandroid/syncthing/PostConfigTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java index 83f4d013..0c3a2b89 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java @@ -43,8 +43,8 @@ public class PostConfigTask extends AsyncTask { 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);