Avoid crashes when account attached to a toot is null

This commit is contained in:
stom79 2018-09-03 08:10:18 +02:00
parent b2617326c8
commit 6fb8bb1356
1 changed files with 2 additions and 0 deletions

View File

@ -523,6 +523,8 @@ public class Status implements Parcelable{
if( ((Activity)context).isFinishing() )
return;
if( status.getAccount() == null)
return;
final List<Emojis> emojis = status.getReblog() != null ? status.getReblog().getEmojis() : status.getEmojis();
final List<Emojis> emojisAccounts = status.getAccount().getEmojis();