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() {