Skip to content

Commit ef4c1e3

Browse files
Merge pull request #16874 from nextcloud/backport/16872/stable-33.1.0
[stable-33.1.0] fix(offline-sync): remote path npe
2 parents f4794f8 + d8d5cc3 commit ef4c1e3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/src/main/java/com/nextcloud/client/jobs/OfflineSyncWork.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,14 @@ class OfflineSyncWork(
7272
if (files != null) {
7373
for (file in files) {
7474
val ocFile = storageManager.getFileByLocalPath(file.path)
75+
val remotePath = ocFile?.remotePath
76+
if (remotePath == null) {
77+
Log_OC.w(TAG, "remote path is null can't sync")
78+
continue
79+
}
80+
7581
val synchronizeFileOperation = SynchronizeFileOperation(
76-
ocFile?.remotePath,
82+
remotePath,
7783
user,
7884
true,
7985
context,

0 commit comments

Comments
 (0)