From 9793035a3d2b4e8e6d9ccb719706c8efb0f48a5b Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Tue, 1 Dec 2020 07:39:15 +0100 Subject: [PATCH] fix crash when opening some audio attachments (#2002) --- app/src/main/java/com/keylesspalace/tusky/entity/Attachment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/entity/Attachment.kt b/app/src/main/java/com/keylesspalace/tusky/entity/Attachment.kt index 3517ff09..1de7bd78 100644 --- a/app/src/main/java/com/keylesspalace/tusky/entity/Attachment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/entity/Attachment.kt @@ -28,7 +28,7 @@ import kotlinx.android.parcel.Parcelize data class Attachment( val id: String, val url: String, - @SerializedName("preview_url") val previewUrl: String, + @SerializedName("preview_url") val previewUrl: String?, // can be null for e.g. audio attachments val meta: MetaData?, val type: Type, val description: String?,