From 5fee93d975d741f375d71b3ddc7f9bb013bff7dc Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 3 Mar 2017 10:52:24 +0100 Subject: [PATCH] Declare string where needed --- src/com/owncloud/android/operations/UploadFileOperation.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/owncloud/android/operations/UploadFileOperation.java b/src/com/owncloud/android/operations/UploadFileOperation.java index d61e4c5dde..87214bcb3d 100644 --- a/src/com/owncloud/android/operations/UploadFileOperation.java +++ b/src/com/owncloud/android/operations/UploadFileOperation.java @@ -293,7 +293,6 @@ public class UploadFileOperation extends SyncOperation { mCancellationRequested.set(false); mUploadStarted.set(true); RemoteOperationResult result = null; - String expectedPath = null; File temporalFile = null, originalFile = new File(mOriginalStoragePath), expectedFile = null; try { @@ -347,7 +346,7 @@ public class UploadFileOperation extends SyncOperation { throw new OperationCancelledException(); } - expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile); + String expectedPath = FileStorageUtils.getDefaultSavePathFor(mAccount.name, mFile); expectedFile = new File(expectedPath); /// copy the file locally before uploading