Skip to content

Commit

Permalink
Fix nullref when using GetTwitchUserFollows
Browse files Browse the repository at this point in the history
  • Loading branch information
samfundev committed Jul 18, 2022
1 parent 82a3be4 commit dbc39b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected ArrayList<ChannelInfo> doInBackground(Object... params) {

SimpleResponse response = makeRequest(request);
if (response == null)
return null;
return new ArrayList<>();

JSONObject page = new JSONObject(response.body);
JSONArray follows = page.getJSONArray("data");
Expand Down

0 comments on commit dbc39b9

Please sign in to comment.