mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Handle null InboxThreadModel. Fixes https://github.com/austinhuang0131/barinsta/issues/329
This commit is contained in:
parent
dccfcaf78a
commit
c72c4469f5
@ -66,6 +66,7 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResult(final InboxThreadModel threadModel) {
|
public void onResult(final InboxThreadModel threadModel) {
|
||||||
|
if (threadModel == null) return;
|
||||||
final List<Long> adminList = Arrays.asList(threadModel.getAdmins());
|
final List<Long> adminList = Arrays.asList(threadModel.getAdmins());
|
||||||
final String userIdFromCookie = CookieUtils.getUserIdFromCookie(cookie);
|
final String userIdFromCookie = CookieUtils.getUserIdFromCookie(cookie);
|
||||||
if (userIdFromCookie == null) return;
|
if (userIdFromCookie == null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user