fix: hopefully this addresses a crash when opening an unsent post with an audio file

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
LucasGGamerM 2023-12-17 17:04:22 -03:00
parent 6220a20734
commit 08d4c135ea
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class AudioStatusDisplayItem extends StatusDisplayItem{
super(parentID, parentFragment);
this.status=status;
this.attachment=attachment;
imageRequest=new UrlImageLoaderRequest(TextUtils.isEmpty(attachment.previewUrl) ? status.account.avatarStatic : attachment.previewUrl, V.dp(100), V.dp(100));
imageRequest=new UrlImageLoaderRequest(TextUtils.isEmpty(attachment.previewUrl) ? (status.account.avatarStatic != null ? status.account.avatarStatic : "") : attachment.previewUrl, V.dp(100), V.dp(100));
}
@Override