Skip to content

Commit d8d5cc3

Browse files
alperozturk96backportbot[bot]
authored andcommitted
fix(offline-sync): remote path npe
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent c387a6d commit d8d5cc3

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

app/src/main/java/com/owncloud/android/operations/SynchronizeFileOperation.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,10 @@ protected RemoteOperationResult run(OwnCloudClient client) {
186186
mTransferWasRequested = false;
187187

188188
if (mLocalFile == null) {
189-
if (mRemotePath == null) {
190-
Log_OC.e(TAG, "Cannot synchronize file: remotePath is null");
191-
return new RemoteOperationResult<>(ResultCode.FILE_NOT_FOUND);
192-
}
193-
194189
// Get local file from the DB
195190
mLocalFile = getStorageManager().getFileByPath(mRemotePath);
196191
}
197192

198-
if (mLocalFile == null) {
199-
Log_OC.e(TAG, "Cannot synchronize file: local file not found in database for path: " + mRemotePath);
200-
return new RemoteOperationResult(ResultCode.FILE_NOT_FOUND);
201-
}
202-
203193
if (!mLocalFile.isDown()) {
204194
/// easy decision
205195
requestForDownload(mLocalFile);

0 commit comments

Comments
 (0)