From 76a4aa5ae608db5a3f828467a725959b9def4a18 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 11 Dec 2020 17:16:29 +0100 Subject: [PATCH] Fix #136 - crash with download button and lives --- .../java/app/fedilab/fedilabtube/client/data/VideoData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/client/data/VideoData.java b/app/src/main/java/app/fedilab/fedilabtube/client/data/VideoData.java index 2779088..7bf47d4 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/client/data/VideoData.java +++ b/app/src/main/java/app/fedilab/fedilabtube/client/data/VideoData.java @@ -282,7 +282,7 @@ public class VideoData { } } } - return files.get(0).getFileDownloadUrl(); + return files != null && files.size() > 0 ? files.get(0).getFileDownloadUrl() : null; } public Account getAccount() {