diff --git a/app/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java b/app/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java index 883ba034c5..0370aadb3b 100755 --- a/app/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java +++ b/app/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java @@ -804,7 +804,8 @@ public class ReceiveExternalFilesActivity extends FileActivity private void startSyncFolderOperation(OCFile folder) { if (folder == null) { - throw new IllegalArgumentException("Folder must not be null"); + DisplayUtils.showSnackMessage(this, R.string.receive_external_files_activity_start_sync_folder_is_not_exists_message); + return; } long currentSyncTime = System.currentTimeMillis(); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a9697e5e2d..63679a057b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -448,6 +448,8 @@ Unexpected error while copying to clipboard Text copied from %1$s + Folder cannot be found, sync operation is cancelled + Critical error: Unable to perform operations An error occurred during connection to the server