mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
if parent is null, then do a regular check, no early exit
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
9133158fd0
commit
f6e24eb067
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ public class FileOperationsHelper {
|
|||
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue