Browse Source

more fb messenger stuff

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
ed4095a6ef
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 4
      app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java

4
app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java

@ -257,8 +257,8 @@ public final class ResponseBodyUtils {
final JSONArray users = data.getJSONArray("users"); final JSONArray users = data.getJSONArray("users");
final int usersLen = users.length(); final int usersLen = users.length();
final JSONArray leftusers = data.getJSONArray("left_users");
final int leftusersLen = leftusers.length();
final JSONArray leftusers = data.optJSONArray("left_users");
final int leftusersLen = leftusers == null ? 0 : leftusers.length();
final JSONArray admins = data.getJSONArray("admin_user_ids"); final JSONArray admins = data.getJSONArray("admin_user_ids");
final int adminsLen = admins.length(); final int adminsLen = admins.length();

Loading…
Cancel
Save