From 5cc94fa2b03f3a0017ff42f46a64c6cb4ea5776e Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 17 Dec 2023 17:20:36 -0300 Subject: [PATCH] fix: hopefully this addresses a crash when opening an unsent post with an audio file (again) Crash fix hopefully --- .../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 75643afaa..767c28e1f 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 != null ? status.account.avatarStatic : "") : attachment.previewUrl, V.dp(100), V.dp(100)); + imageRequest=new UrlImageLoaderRequest(TextUtils.isEmpty(attachment.previewUrl) ? (status.account != null ? status.account.avatarStatic : "") : attachment.previewUrl, V.dp(100), V.dp(100)); } @Override