summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/dropbox_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp
index 41b72b9de3..bfc5320c98 100644
--- a/plugins/CloudFile/src/Services/dropbox_service.cpp
+++ b/plugins/CloudFile/src/Services/dropbox_service.cpp
@@ -221,7 +221,8 @@ auto CDropboxService::CreateSharedLink(const std::string &path)
void CDropboxService::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);
auto link = CreateSharedLink(path);