From de5bec442a5eee040de43882ef722861098cb368 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 21 Mar 2018 14:11:56 +0100 Subject: [PATCH] file not found Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/activity/FileDisplayActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 50b4a22f60..e71bf66dab 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1545,7 +1545,7 @@ public class FileDisplayActivity extends HookActivity if (mWaitingToPreview != null && getStorageManager() != null) { // update the file mWaitingToPreview = getStorageManager().getFileById(mWaitingToPreview.getFileId()); - if (!mWaitingToPreview.isDown()) { + if (mWaitingToPreview != null && !mWaitingToPreview.isDown()) { requestForDownload(); } }