fix crash error when following doesn't exist in shared user state
This commit is contained in:
parent
0647deb06c
commit
f9a4b71037
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ public class LoadSharedUserStateTask extends AsyncTask<Void, Void, Boolean> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isNotificationsDisabledForSubUrl(String url, JSONArray following) {
|
protected boolean isNotificationsDisabledForSubUrl(String url, JSONArray following) {
|
||||||
|
if (following == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < following.length(); i++) {
|
for (int i = 0; i < following.length(); i++) {
|
||||||
JSONObject item = following.getJSONObject(i);
|
JSONObject item = following.getJSONObject(i);
|
||||||
|
|
Loading…
Reference in a new issue