From d12af16f464e36738a108eb9e8f4c27dc44ac717 Mon Sep 17 00:00:00 2001 From: rrooij Date: Sun, 21 Feb 2016 19:07:24 +0100 Subject: [PATCH] VideoItemDetailFragment: check for next vid Check if the next video is available before loading the thumbnails. --- .../main/java/org/schabi/newpipe/VideoItemDetailFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java b/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java index 89791bc2b..ffef09d44 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemDetailFragment.java @@ -409,7 +409,7 @@ public class VideoItemDetailFragment extends Fragment { imageLoader.displayImage(info.uploader_thumbnail_url, uploaderThumb, displayImageOptions, new ThumbnailLoadingListener()); } - if(info.thumbnail_url != null && !info.thumbnail_url.isEmpty()) { + if(info.thumbnail_url != null && !info.thumbnail_url.isEmpty() && info.next_video != null) { imageLoader.displayImage(info.next_video.thumbnail_url, nextVideoThumb, displayImageOptions, new ThumbnailLoadingListener()); }