From c7a0a0aa247300df37941ab9e1bf3874bbb9110f Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 2 Oct 2019 08:02:44 +0200 Subject: [PATCH] if parent is null, then do a regular check, no early exit Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/helpers/FileOperationsHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java b/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java index 143e73378299..d0be8ebf4aa4 100755 --- a/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java +++ b/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java @@ -206,7 +206,7 @@ public void startSyncForFileAndIntent(OCFile file, Intent intent) { // check if latest sync is >30s ago OCFile parent = storageManager.getFileById(file.getParentId()); - if (parent.getLastSyncDateForData() + 30 * 1000 > System.currentTimeMillis()) { + if (parent != null && parent.getLastSyncDateForData() + 30 * 1000 > System.currentTimeMillis()) { EventBus.getDefault().post(new SyncEventFinished(intent)); return;