From aaf98f7393476d063d25cc25cb4ffd03541e8cf3 Mon Sep 17 00:00:00 2001 From: aunsane Date: Mon, 23 Apr 2018 21:11:16 +0300 Subject: CloudFile: fixed #1298 --- plugins/CloudFile/src/Services/microsoft_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/CloudFile/src/Services/microsoft_service.cpp') diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp index 92a50cbc80..db8acf7cc6 100644 --- a/plugins/CloudFile/src/Services/microsoft_service.cpp +++ b/plugins/CloudFile/src/Services/microsoft_service.cpp @@ -211,7 +211,8 @@ auto COneDriveService::CreateSharedLink(const std::string &itemId) void COneDriveService::Upload(FileTransferParam *ftp) { std::string folderId; - std::string serverFolder = T2Utf(ftp->GetServerDirectory()); + auto serverDictionary = ftp->GetServerDirectory(); + std::string serverFolder = serverDictionary ? T2Utf(serverDictionary) : ""; if (!serverFolder.empty()) { auto path = PreparePath(serverFolder); folderId = CreateFolder(path); -- cgit v1.2.3