From 08d4c135ea962165318c3f8b29e02c6fc4bafd77 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 17 Dec 2023 17:04:22 -0300 Subject: [PATCH] fix: hopefully this addresses a crash when opening an unsent post with an audio file AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --- .../android/ui/displayitems/AudioStatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AudioStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AudioStatusDisplayItem.java index 1333d76d0..75643afaa 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AudioStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AudioStatusDisplayItem.java @@ -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