file not found

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-03-21 14:11:56 +01:00
parent 9a97e436d8
commit de5bec442a
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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();
}
}