diff options
author | aunsane <aunsane@gmail.com> | 2018-04-23 21:11:16 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-23 21:11:16 +0300 |
commit | aaf98f7393476d063d25cc25cb4ffd03541e8cf3 (patch) | |
tree | fdddccbcfa63f08accc0fb43374c1f908fc0b7d7 /plugins/CloudFile/src/Services/yandex_service.cpp | |
parent | 7950cd0b91e0c5ffcf97f62378542822cea2ad37 (diff) |
CloudFile: fixed #1298
Diffstat (limited to 'plugins/CloudFile/src/Services/yandex_service.cpp')
-rw-r--r-- | plugins/CloudFile/src/Services/yandex_service.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/Services/yandex_service.cpp b/plugins/CloudFile/src/Services/yandex_service.cpp index cffe82caa2..ff99604aa4 100644 --- a/plugins/CloudFile/src/Services/yandex_service.cpp +++ b/plugins/CloudFile/src/Services/yandex_service.cpp @@ -220,7 +220,8 @@ auto CYandexService::CreateSharedLink(const std::string &path) void CYandexService::Upload(FileTransferParam *ftp) { - std::string serverFolder = T2Utf(ftp->GetServerDirectory()); + auto serverDictionary = ftp->GetServerDirectory(); + std::string serverFolder = serverDictionary ? T2Utf(serverDictionary) : ""; if (!serverFolder.empty()) { auto path = PreparePath(serverFolder); CreateFolder(path); |