diff --git a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 5806a4082d..68910a282c 100644 --- a/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -182,7 +182,7 @@ public class ThumbnailsCacheManager { if (mFile instanceof OCFile) { thumbnail = doOCFileInBackground(); - if (((OCFile) mFile).isVideo()){ + if (((OCFile) mFile).isVideo() && thumbnail != null){ thumbnail = addVideoOverlay(thumbnail); } } else if (mFile instanceof File) { @@ -191,7 +191,7 @@ public class ThumbnailsCacheManager { String url = ((File) mFile).getAbsolutePath(); String mMimeType = FileStorageUtils.getMimeTypeFromName(url); - if (mMimeType != null && mMimeType.startsWith("video/")){ + if (mMimeType != null && mMimeType.startsWith("video/") && thumbnail != null){ thumbnail = addVideoOverlay(thumbnail); } //} else { do nothing