summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/fr/gouv/etalab/mastodon/client/API.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/client/API.java')
-rw-r--r--app/src/main/java/fr/gouv/etalab/mastodon/client/API.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/client/API.java b/app/src/main/java/fr/gouv/etalab/mastodon/client/API.java
index f748d04f6..eb4d47763 100644
--- a/app/src/main/java/fr/gouv/etalab/mastodon/client/API.java
+++ b/app/src/main/java/fr/gouv/etalab/mastodon/client/API.java
@@ -1544,6 +1544,7 @@ public class API {
if( onlymedia)
params.put("only_media", Boolean.toString(true));
+
if( any != null && any.size() > 0) {
StringBuilder parameters = new StringBuilder();
for (String a : any) {
@@ -1594,6 +1595,7 @@ public class API {
statuses = parseStatuses(context, new JSONArray(response));
} catch (HttpsConnection.HttpsConnectionException e) {
setError(e.getStatusCode(), e);
+ e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (IOException e) {
@@ -2905,7 +2907,7 @@ public class API {
* @return APIResponse
*/
public APIResponse getLists(){
-
+ apiResponse = new APIResponse();
List<fr.gouv.etalab.mastodon.client.Entities.List> lists = new ArrayList<>();
try {
String response = new HttpsConnection(context).get(getAbsoluteUrl("/lists"), 60, null, prefKeyOauthTokenT);