fix crash error when following doesn't exist in shared user state

This commit is contained in:
Akinwale Ariwodola 2020-12-13 18:07:19 +01:00
parent 0647deb06c
commit f9a4b71037

View file

@ -130,6 +130,10 @@ public class LoadSharedUserStateTask extends AsyncTask<Void, Void, Boolean> {
}
protected boolean isNotificationsDisabledForSubUrl(String url, JSONArray following) {
if (following == null) {
return true;
}
try {
for (int i = 0; i < following.length(); i++) {
JSONObject item = following.getJSONObject(i);